From c28f311d432fe234ca656966bccf2fcaa28d6d9b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 16 May 2012 17:01:31 +0900 Subject: [PATCH] add to auto-mode-alist --- emacs.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 58afbb7..34dd5dd 100644 --- a/emacs.el +++ b/emacs.el @@ -585,8 +585,13 @@ Return nil if library unfound and failed to download, otherwise the path where t (shell-command (buffer-substring-no-properties (point-at-bol) (point)))) -(add-to-list 'auto-mode-alist - '("\\(xinitrc\\|xprograms\\)\\'" . sh-mode)) +;; (add-to-list 'auto-mode-alist +;; '("\\(xinitrc\\|xprograms\\)\\'" . sh-mode)) +(setq auto-mode-alist + `(("autostart\\'" . sh-mode) + ("xinitrc\\'" . sh-mode) + ("xprograms\\'" . sh-mode) + ,@auto-mode-alist)) (setq python-python-command (or (executable-find "python3") (executable-find "python")))