Skip to content

Commit

Permalink
update emacs mode docs to modern way of enabling newline and indent
Browse files Browse the repository at this point in the history
Thanks to Max Kubierschky. Verified works on Emacs 24.4.1 in Debian stable.
  • Loading branch information
duelafn committed Jun 23, 2016
1 parent 01cd956 commit 9e71b32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kivy/tools/highlight/kivy-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
;;
;; to your .emacs file.
;;
;; Unlike python-mode, this mode follows the Emacs convention of not
;; binding the ENTER key to `newline-and-indent'. To get this behavior, add
;; the key definition to `kivy-mode-hook':
;; This mode does not enable electric-indent by default. To get this
;; behavior, either enable electric-indent-mode globally or enable it only
;; for kivy buffers using `kivy-mode-hook':
;;
;; (add-hook 'kivy-mode-hook
;; '(lambda ()
;; (define-key kivy-mode-map "\C-m" 'newline-and-indent)))
;; (electric-indent-local-mode t)))


;; User definable variables
Expand Down

0 comments on commit 9e71b32

Please sign in to comment.