diff options
author | Case Duckworth | 2021-06-02 23:38:30 -0500 |
---|---|---|
committer | Case Duckworth | 2021-06-02 23:38:30 -0500 |
commit | f29e8c896c28fe2505c630652a74ebed5075a01c (patch) | |
tree | 5a38828559099bb2ec6ac55f788cc459a80fbf40 | |
parent | Add 'needs mpv' statement to eradio (diff) | |
download | emacs-f29e8c896c28fe2505c630652a74ebed5075a01c.tar.gz emacs-f29e8c896c28fe2505c630652a74ebed5075a01c.zip |
Add ssh-config-mode
-rw-r--r-- | init.el | 8 |
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)) |