Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

Kill to the end of the delimiter of last sexp in emacs

View previous topic View next topic Go down

Kill to the end of the delimiter of last sexp in emacs

Post  halala on Wed Jan 15, 2014 11:01 am

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)
avatar
halala

帖子数 : 99
金币(Coin) : 2218
注册日期 : 2012-08-17

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum