From f29e8c896c28fe2505c630652a74ebed5075a01c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 2 Jun 2021 23:38:30 -0500 Subject: Add ssh-config-mode --- init.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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'." (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)) -- cgit 1.4.1-21-gabe81