From b6fc82150877113cf3649c44a66eaaf601630e28 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sun, 9 Oct 2011 17:02:16 +0300 Subject: [PATCH] saner osx path, enable auto-fill in text modes --- init.el | 5 +++++ prelude-editor.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/init.el b/init.el index 9de2adc..a3497ef 100644 --- a/init.el +++ b/init.el @@ -33,6 +33,11 @@ ;;; Code: +;; on OS X Emacs doesn't use the shell PATH +;; if you're using homebrew modifying the PATH is essential +(if (string= system-type "darwin") + (push "/usr/local/bin" exec-path)) + (defvar prelude-dir "~/.emacs.d/") (defvar vendor-dir (concat prelude-dir "vendor")) diff --git a/prelude-editor.el b/prelude-editor.el index 8403fbb..5fd785c 100644 --- a/prelude-editor.el +++ b/prelude-editor.el @@ -153,6 +153,9 @@ (setq bookmark-default-file "~/.emacs.d/bookmarks" bookmark-save-flag 1) +;; enabled auto-fill mode in text-mode and all related modes +(add-hook 'text-mode-hook 'turn-on-auto-fill) + (provide 'prelude-editor) ;;; prelude-editor.el ends here