Add ssh-config-mode
This commit is contained in:
parent
b98098161f
commit
f29e8c896c
8
init.el
8
init.el
|
@ -1140,6 +1140,14 @@ if ripgrep is installed, otherwise `consult-grep'."
|
|||
(paredit-newline)
|
||||
(electric-newline-and-maybe-indent)))))
|
||||
|
||||
(setup (:straight ssh-config-mode)
|
||||
(dolist (spec '(("/\\.ssh/config\\'" . ssh-config-mode)
|
||||
("/sshd?_config\\'" . ssh-config-mode)
|
||||
("/knownhosts\\'" . ssh-known-hosts-mode)
|
||||
("/authorized_keys2?\\'" . ssh-authorized-keys-mode)))
|
||||
(add-to-list 'auto-mode-alist spec))
|
||||
(add-hook 'ssh-config-mode-hook #'turn-on-font-lock))
|
||||
|
||||
(setup (:straight undo-fu)
|
||||
(:global "C-/" undo-fu-only-undo
|
||||
"C-?" undo-fu-only-redo))
|
||||
|
|
Loading…
Reference in New Issue