Add ssh-config-mode

This commit is contained in:
Case Duckworth 2021-06-02 23:38:30 -05:00
parent b98098161f
commit f29e8c896c
1 changed files with 8 additions and 0 deletions

View File

@ -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))