Last active
March 8, 2016 10:19
-
-
Save hage/224979dd03e7e7e6a0b5 to your computer and use it in GitHub Desktop.
Emacs で `|>` を楽に入力する ref: http://qiita.com/__hage/items/a8a99b996fd266ccbcf5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(eval-after-load "elixir-mode" | |
#'(progn | |
;; 改行して行頭に |> をつける | |
(defun my-elixir-newline-and-insert-pipe () | |
(interactive) | |
(move-end-of-line 1) | |
(newline-and-indent) | |
(insert "|> ")) | |
(define-key elixir-mode-map (kbd "M-J") 'my-elixir-newline-and-insert-pipe))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment