From f8cbbdf23c425b1b9fb1c8b723dc7947f4b4ac0b Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 1 Apr 2019 13:51:32 -0500 Subject: [PATCH] Added ssh_config mode, start external shell for windows, and -alh for ls --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 64248c6..3bda5f9 100644 --- a/init.el +++ b/init.el @@ -20,6 +20,7 @@ elpy flycheck magit + ssh-config-mode ; material-theme dracula-theme yaml-mode @@ -32,6 +33,7 @@ (package-install package))) myPackages) ;; BASIC +(add-to-list 'auto-mode-alist '("~/.ssh/config\\'" . ssh-config-mode)) (require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) (global-set-key (kbd "C-c ") 'windmove-left) @@ -39,6 +41,7 @@ (global-set-key (kbd "C-c ") 'windmove-up) (global-set-key (kbd "C-c ") 'windmove-down) (global-set-key (kbd "C-;") 'iedit-mode) +(setq dired-listing-switches "-alh") (defun duplicate-line() (interactive) (move-beginning-of-line 1) @@ -61,6 +64,10 @@ (progn (defun quote-exe (path) (w32-short-file-name path)) + (defun start-external-shell () + (interactive) + (start-process-shell-command (format "cmd(%s)" default-directory) nil "start cmd")) + (global-set-key (kbd "C-S-C") 'start-external-shell) (setq insert-directory-program "C:/Program Files/git/usr/bin/ls.exe") (setq find-program (quote-exe "C:/Program Files/git/usr/bin/find.exe")) (setq grep-program (quote-exe "C:/Program Files/git/usr/bin/grep.exe"))