Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created April 27, 2015 03:10
Show Gist options
  • Save igaiga/51c9411368c302af5e9c to your computer and use it in GitHub Desktop.
Save igaiga/51c9411368c302af5e9c to your computer and use it in GitHub Desktop.
;; C-o の改行した先をインデントする版
(provide 'insert-new-line)
(defun insert-new-line()
(interactive)
(save-excursion ;ポインタ位置を記憶して終了したら元に戻す
(open-line 1)
(forward-line)
(indent-for-tab-command)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment