summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2018-02-07 21:06:40 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2018-02-07 21:08:01 +0100
commit66278c7e64f459bdaa971697af37dc1c74690c0b (patch)
treefc4052d785ca70de519ae2b18610ff047e4e78f7
parent09bd6875f1b9d1b646c87fab91f3bd667b6a4f7c (diff)
downloaddotfiles-66278c7e64f459bdaa971697af37dc1c74690c0b.tar.xz
Unbind C-c h
C-M-S-h (ie control alt shift H) still works in graphical frames, which covers 99% of my usage.
-rw-r--r--.emacs9
1 files changed, 5 insertions, 4 deletions
diff --git a/.emacs b/.emacs
index fa90a82..0201236 100644
--- a/.emacs
+++ b/.emacs
@@ -20,10 +20,12 @@
;; C-h is a special snowflake in many situations; this is the most
;; reliable way I found to consistently get C-h to do what DEL does.
(define-key input-decode-map (kbd "C-h") (kbd "DEL"))
-;; Likewise, C-M-h (resp. M-h) gets re-bound by cc-mode
-;; (resp. markdown-mode, nxml-mode). So this is the simplest way I
-;; know of to make sure C-M-h sticks as "backward-kill-word"
+;; Likewise, C-M-h (resp. M-h) gets re-bound by cc-mode (resp.
+;; markdown-mode, nxml-mode). So this is the simplest way I know of
+;; to make sure C-M-h sticks as "backward-kill-word"
(define-key input-decode-map (kbd "C-M-h") (kbd "M-DEL"))
+;; NB: help and mark-defun are still accessible using H instead of h,
+;; except in a terminal.
(global-set-key (kbd "C-x C-b") 'ibuffer)
@@ -31,7 +33,6 @@
(global-set-key (kbd "C-c c") 'compile)
(global-set-key (kbd "C-c f") 'auto-fill-mode)
-(global-set-key (kbd "C-c h") 'mark-defun)
(global-set-key (kbd "C-c m") 'man)
(global-set-key (kbd "C-c p") 'electric-pair-mode)
(global-set-key (kbd "C-c t") 'toggle-truncate-lines)