Permalink
Browse files

open-line commands

  • Loading branch information...
1 parent c78a36a commit 4425687dd9e0501717e7ab72cba229cb4972c38f @genehack committed Dec 30, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 etc/misc.el
View
@@ -215,6 +215,21 @@
;;; NOOP
(defun genehack/noop nil "..." (interactive))
+;;; OPEN LINE
+;;;; from http://whattheemacsd.com//editing-defuns.el-01.html
+(defun open-line-below ()
+ (interactive)
+ (end-of-line)
+ (newline)
+ (indent-for-tab-command))
+
+(defun open-line-above ()
+ (interactive)
+ (beginning-of-line)
+ (newline)
+ (forward-line -1)
+ (indent-for-tab-command))
+
;;; PAREN-BOUNCE
;;;; ganked from <http://elfs.livejournal.com/1216037.html>
(defun genehack/paren-bounce ()

0 comments on commit 4425687

Please sign in to comment.