saner osx path, enable auto-fill in text modes

This commit is contained in:
Bozhidar Batsov 2011-10-09 17:02:16 +03:00
parent c7ba5e4b27
commit b6fc821508
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,11 @@
;;; Code: ;;; 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 prelude-dir "~/.emacs.d/")
(defvar vendor-dir (concat prelude-dir "vendor")) (defvar vendor-dir (concat prelude-dir "vendor"))

View file

@ -153,6 +153,9 @@
(setq bookmark-default-file "~/.emacs.d/bookmarks" (setq bookmark-default-file "~/.emacs.d/bookmarks"
bookmark-save-flag 1) 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) (provide 'prelude-editor)
;;; prelude-editor.el ends here ;;; prelude-editor.el ends here