From 98293de9eead498a9145fb2d9ae50e7696af601d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 4 Jul 2014 01:35:27 -0400 Subject: Change end-of-line maker for auto-mode patterns Should use "\\'" instead of "$". http://www.emacswiki.org/emacs/AutoModeAlist --- lisp/init-org.el | 2 +- lisp/init-shell.el | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') diff --git a/lisp/init-org.el b/lisp/init-org.el index f6ca596..276d6e1 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -98,7 +98,7 @@ "nointegrals") (add-to-list 'org-latex-packages-alist '("" "amsmath" t))) -(add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode)) +(add-to-list 'auto-mode-alist '("\\.org.txt\\'" . org-mode)) (add-to-list 'safe-local-variable-values '(org-goto-max-level . 2)) diff --git a/lisp/init-shell.el b/lisp/init-shell.el index 6f7e26c..a353526 100644 --- a/lisp/init-shell.el +++ b/lisp/init-shell.el @@ -2,7 +2,7 @@ (require-package 'pkgbuild-mode) -(add-to-list 'auto-mode-alist '("\\.zsh$" . shell-script-mode)) -(add-to-list 'auto-mode-alist '("\\.*rc$" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.zsh\\'" . shell-script-mode)) +(add-to-list 'auto-mode-alist '("\\.*rc\\'" . conf-unix-mode)) (provide 'init-shell) -- cgit v1.2.3