diff --git a/global.org b/global.org index 88ba33a..50c61f5 100644 --- a/global.org +++ b/global.org @@ -457,6 +457,14 @@ (beginning-of-line)))) (global-set-key (kbd "C-a") 'smart-line-beginning) #+end_src +** Smart open-line + #+begin_src emacs-lisp + (defun open-line-and-indent () + (interactive) + (save-excursion (newline-and-indent))) + + (global-set-key (kbd "C-o") #'open-line-and-indent) + #+end_src ** Whitespace Trailing whitespace is evil; get rid of it unless we are in special modes, namely calendar (and later mu4e)