about summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-06-02 23:38:30 -0500
committerCase Duckworth2021-06-02 23:38:30 -0500
commitf29e8c896c28fe2505c630652a74ebed5075a01c (patch)
tree5a38828559099bb2ec6ac55f788cc459a80fbf40 /init.el
parentAdd 'needs mpv' statement to eradio (diff)
downloademacs-f29e8c896c28fe2505c630652a74ebed5075a01c.tar.gz
emacs-f29e8c896c28fe2505c630652a74ebed5075a01c.zip
Add ssh-config-mode
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el index af17081..ac830c2 100644 --- a/init.el +++ b/init.el
@@ -1140,6 +1140,14 @@ if ripgrep is installed, otherwise `consult-grep'."
1140 (paredit-newline) 1140 (paredit-newline)
1141 (electric-newline-and-maybe-indent))))) 1141 (electric-newline-and-maybe-indent)))))
1142 1142
1143(setup (:straight ssh-config-mode)
1144 (dolist (spec '(("/\\.ssh/config\\'" . ssh-config-mode)
1145 ("/sshd?_config\\'" . ssh-config-mode)
1146 ("/knownhosts\\'" . ssh-known-hosts-mode)
1147 ("/authorized_keys2?\\'" . ssh-authorized-keys-mode)))
1148 (add-to-list 'auto-mode-alist spec))
1149 (add-hook 'ssh-config-mode-hook #'turn-on-font-lock))
1150
1143(setup (:straight undo-fu) 1151(setup (:straight undo-fu)
1144 (:global "C-/" undo-fu-only-undo 1152 (:global "C-/" undo-fu-only-undo
1145 "C-?" undo-fu-only-redo)) 1153 "C-?" undo-fu-only-redo))