summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
Diffstat (limited to '.emacs')
-rw-r--r--.emacs17
1 files changed, 10 insertions, 7 deletions
diff --git a/.emacs b/.emacs
index 0201236..45f15db 100644
--- a/.emacs
+++ b/.emacs
@@ -19,13 +19,18 @@
;; 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"
-(define-key input-decode-map (kbd "C-M-h") (kbd "M-DEL"))
+;;
+;; Likewise, C-M-h is re-bound by some major modes (CC, Python, Perl),
+;; so this is the simplest way I know of to make sure C-M-h sticks as
+;; "backward-kill-word".
+;;
+;; Same story with M-h (mark-paragraph) which gets re-bound by eg
+;; markdown-mode and nxml-mode.
+;;
;; NB: help and mark-defun are still accessible using H instead of h,
;; except in a terminal.
+(define-key input-decode-map (kbd "C-h") (kbd "DEL"))
+(define-key input-decode-map (kbd "C-M-h") (kbd "M-DEL"))
(global-set-key (kbd "C-x C-b") 'ibuffer)
@@ -223,5 +228,3 @@
;; TODO: fringe fun: hideshowvis, git gutter…
;; TODO: decruftify mode-line
-;; TODO: visual-line vs word-wrap
-;; TODO: check for an idiomatic way to append thru dir-locals