summaryrefslogtreecommitdiff
path: root/lisp/init-my-stuff.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-my-stuff.el')
-rw-r--r--lisp/init-my-stuff.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/init-my-stuff.el b/lisp/init-my-stuff.el
index 2dcc186..1c0f084 100644
--- a/lisp/init-my-stuff.el
+++ b/lisp/init-my-stuff.el
@@ -68,3 +68,13 @@
;; easier way to jump to other window
(global-set-key (kbd "M-o") 'other-window)
+
+
+(defun my/smart-open-line ()
+ "Insert an empty line after the current line.
+Position the cursor at its beginning, according to the current mode."
+ (interactive)
+ (move-end-of-line nil)
+ (newline-and-indent))
+
+(global-set-key [(shift return)] 'my/smart-open-line)