Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
mark-naylor-1701
emacs delete words
mark-naylor-1701
Sep 30th, 2023
(
edited
)
3,185
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Lisp
0.53 KB
| None
|
0
0
raw
download
clone
embed
print
report
;; Functions that delete words without sending them to the kill ring.
(
defun
delete-word
(
arg
)
"Equivalent to `kill-word'. Characters do not get sent to the kill-ring."
(
interactive
"p"
)
(
delete-region
(
point
)
(
progn
(
forward-word arg
)
(
point
)
)
)
)
(
defun
backward-delete-word
(
arg
)
"Equivalent to `backward-kill-word'. Characters do not get sent to the kill-ring."
(
interactive
"p"
)
(
delete-word
(
- arg
)
)
)
(
global-set-key
(
kbd
"M-D"
)
#'delete-word
)
(
global-set-key
(
kbd
"M-S-<backspace>"
)
#'backward-delete-word
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Huge Bitcoin Profits
CSS | 44 min ago | 0.94 KB
✅ VIP Method
CSS | 45 min ago | 0.94 KB
Untitled
1 hour ago | 11.62 KB
Untitled
3 hours ago | 16.92 KB
Untitled
5 hours ago | 20.31 KB
Untitled
9 hours ago | 6.74 KB
Untitled
11 hours ago | 8.95 KB
Untitled
13 hours ago | 11.18 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル