Search
Most active topics
Top posting users this month
No user |
GeoMap
Kill to the end of the delimiter of last sexp in emacs
Page 1 of 1
Kill to the end of the delimiter of last sexp in emacs
This e-list function kill backward until the delimiter, more often this will be the end of last sentence of word.
(defun kill-back-word ()
"Kill to the end of the last word"
(interactive)
(set-mark-command nil)
(backward-sexp)
(forward-sexp)
(move-end-of-line 1)
(kill-region (point) (mark))
)
(global-set-key (kbd "C-<backspace>") 'kill-back-word)
(defun kill-back-word ()
"Kill to the end of the last word"
(interactive)
(set-mark-command nil)
(backward-sexp)
(forward-sexp)
(move-end-of-line 1)
(kill-region (point) (mark))
)
(global-set-key (kbd "C-<backspace>") 'kill-back-word)
halala- 帖子数 : 99
金币(Coin) : 4514
注册日期 : 2012-08-17
Similar topics
» An excellent tutorial on Date/Agenda management with emacs org-mode!
» compare two buffers in emacs using ediff
» Comment or Uncomment in emacs according to your mode (注释、反注释)
» A fully functional Emacs for 64bit Windows
» Enable screen for 256 color for terminal/vim/emacs in ubuntu
» compare two buffers in emacs using ediff
» Comment or Uncomment in emacs according to your mode (注释、反注释)
» A fully functional Emacs for 64bit Windows
» Enable screen for 256 color for terminal/vim/emacs in ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum