F~u~c~k i~t!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month
No user

GeoMap

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

Go down

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

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

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

Back to top Go down

Back to top

- Similar topics

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