DEV Community

Discussion on: Customizing Emacs for Editing org Files

Collapse
 
jsvnm profile image
jsvnm

“ Duplicating a line requires this mess: C-a C-SPACE C-n M-w C-y. Obviously, nobody wants to deal with that. It's easier to select, copy, and paste the line than to type that”

that “mess” happens to be how you select, copy and paste a line.

Collapse
 
bachmeil profile image
Lance Bachmeier

Well, that's true, but I meant it's even worse than the disaster of selecting, copying, and pasting with the mouse. In Geany it's just C-d.

Collapse
 
jsvnm profile image
jsvnm

anyway, with default config I’d use
C-a C-k C-k C-y C-y
(goto beginning of line, kill line, including newline, then yank twice. )
instead of selecting the line and copypasting.

and instead of different init file, why not use
(define-key org-mode-map (kbd "C-c x") 'org-cut-special) in normal init to have that key in just org-mode?