progmodes/prog-mode.el (prog-mode-hook): Made customizable.

https://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00353.html
This commit is contained in:
Matthias Meulien 2014-08-08 15:51:47 +02:00 committed by Rüdiger Sonderfeld
parent ddc3fca44e
commit 5c872b1da4
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2014-08-08 Matthias Meulien <orontee@gmail.com>
* progmodes/prog-mode.el (prog-mode-hook): Made customizable.
2014-08-07 Martin Rudalics <rudalics@gmx.at>
* window.el (window--min-size-1): Explicitly set WINDOW arg in

View file

@ -35,6 +35,13 @@
"Generic programming mode, from which others derive."
:group 'languages)
(defcustom prog-mode-hook nil
"Normal hook run when entering Text mode and many related modes."
:type 'hook
:options '(flyspell-prog-mode abbrev-mode flymake-mode linum-mode
prettify-symbols-mode)
:group 'prog-mode)
(defvar prog-mode-map
(let ((map (make-sparse-keymap)))
(define-key map [?\C-\M-q] 'prog-indent-sexp)