Commit 9db297e2e194

Vincent Demeester <vincent@sbr.pm>
2020-04-07 15:03:24
emacs: add ssh-config-mode and config-misc.el
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f1d3683
Changed files (3)
modules
profiles
tools
modules/profiles/emacs.nix
@@ -157,6 +157,7 @@ in
             org-super-agenda
             org-tree-slide
             shr-tag-pre-highlight
+            ssh-config-mode
             smartparens
             symbol-overlay
             undo-tree
tools/emacs/config/config-help.el
@@ -1,15 +0,0 @@
-;;; 02-help.el --- -*- lexical-binding: t -*-
-;;; Commentary:
-;;; help and info mode setup
-;;; Code:
-(use-package helpful
-  :unless noninteractive
-  :bind (("C-h f" . helpful-callable)
-         ("C-h F" . helpful-function)
-         ("C-h M" . helpful-macro)
-         ("C-c h S" . helpful-at-point)
-         ("C-h k" . helpful-key)
-         ("C-h v" . helpful-variable)
-         ("C-h C" . helpful-command)))
-
-;;; 02-help.el ends here
tools/emacs/config/config-misc.el
@@ -0,0 +1,28 @@
+;;; config-misc.el --- -*- lexical-binding: t; -*-
+;;; Commentary:
+;;; Miscellaneous modes configuration
+;;; Code:
+
+;; UseHelpful
+(use-package helpful
+  :unless noninteractive
+  :bind (("C-h f" . helpful-callable)
+         ("C-h F" . helpful-function)
+         ("C-h M" . helpful-macro)
+         ("C-c h S" . helpful-at-point)
+         ("C-h k" . helpful-key)
+         ("C-h v" . helpful-variable)
+         ("C-h C" . helpful-command)))
+;; -UseHelpful
+
+;; UseSSHConfig
+(use-package ssh-config-mode
+  :commands (ssh-config-mode
+             ssh-authorized-keys-mode)
+  :mode ((".ssh/config\\'"       . ssh-config-mode)
+         ("sshd?_config\\'"      . ssh-config-mode)
+         ("known_hosts\\'"       . ssh-known-hosts-mode)
+         ("authorized_keys2?\\'" . ssh-authorized-keys-mode)))
+;; -UseSSHConfig
+
+;;; config-misc.el ends here