Dev. Blog isprometheo의 좌충우돌 개발 블로그
Posts with the tag move line:

[Emacs] Move Line

Emacs에서는 기본적으로 다른 에디터에서 많이 사용되는 기능 중에 하나인 한 줄을 위아래로 옮길 수 없다. 이를 사용하기 위해서 init.el에 다음을 추가하면 된다. (defun move-line (n) "Move the current line up or down by N lines." (interactive "p") (setq col (current-column)) (beginning-of-line) (setq start (point)) (end-of-line) (forward-char) (setq end (point))