From a3c0e67add78ede8c0b1f84cf3f6d3e3b6d1b706 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 17 Jul 2016 15:44:27 +0200 Subject: [PATCH] Store outline settings in directory instead of file --- .dir-locals.el | 16 ++++++++++++++++ emacs/.emacs.d/init.el | 6 ------ zsh/.zshrc | 6 ------ 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..4f8b608 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,16 @@ +;;; Directory Local Variables +;;; For more information see (info "(emacs) Directory Variables") + +((emacs-lisp-mode + (eval outline-minor-mode 1) + (outline-heading-end-regexp . ":\n") + (outline-regexp . ";;;+ [^\n]")) + (sh-mode + (eval outline-minor-mode 1) + (outline-heading-end-regexp . ":\n") + (outline-regexp . "##+"))) + + + + + diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index c6b6371..180cb6e 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -105,9 +105,3 @@ This is currently the data directory under the (provide 'init) ;;; init.el ends here - -;;; Local Variables: -;;; eval: (outline-minor-mode 1) -;;; outline-regexp: ";;;+ [^\n]" -;;; outline-heading-end-regexp: ":\n" -;;; End: diff --git a/zsh/.zshrc b/zsh/.zshrc index 8cc259c..fd9553f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -3,9 +3,3 @@ # personal utilities and helper commands. PATH="${HOME}/usr/bin:${PATH}" export PATH - -## Local Variables: -## eval: (outline-minor-mode 1) -## outline-regexp: "##+" -## outline-heading-end-regexp: ":\n" -## End: