Default indentation level on new line
Created by: reiniervandijk
It's sort of annoying to type code right now in Emacs (Slime mode). Whenever I move to the next line (pressing ENTER or C+n), the indentation level moves to the left border of the screen. A manual TAB input is then required to indent or a C-M-q on the entire expression when finished. It sort of delays the scripting process. So, to illustrate
(defun foo ()
here ...
Ideally, it should be:
(defun foo ()
here ...
Imported comments:
By genworks on 2013-01-30 21:01:45 UTC
This is mentioned in emacs/gdl.el, with a solution:
;; ;; Use C-j for newline-and-indent. If you really like it, you can bind ;; it to [Enter] by uncommenting the following line (from ;; http://emacswiki.org/emacs/AutoIndentation). ;; ;;(global-set-key (kbd "C-m") 'newline-and-indent) ;;
We will add mention of this to the Manual.