From c543f29e81a02a67daeb5db7bd2f7a9f975fcc25 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sat, 1 Feb 2014 23:23:27 -0500 Subject: [PATCH] Try expand-region --- init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index c0b2481..dadc58c 100644 --- a/init.el +++ b/init.el @@ -113,8 +113,9 @@ (setq subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([\\\\[:upper:]]+\\W*\\)\\|\\W\\w+\\)") -(setq default-fill-column 120) -(add-to-list 'load-path "~/tmp" "~/tmp/expand-region.el") +(setq default-fill-column 120) +(add-to-list 'load-path "~/tmp") +(add-to-list 'load-path "~/tmp/expand-region.el") (setq mouse-yank-at-point t) (blink-cursor-mode 0) @@ -194,8 +195,10 @@ the current position of point, then move it to the beginning of the line." (when (eq pt (point)) (beginning-of-line)))) +(require 'expand-region) (global-set-key (kbd "C-a") 'smart-line-beginning) (global-set-key (kbd "M-m") 'iy-go-to-char) +(global-set-key (kbd "C-M-h") 'er/expand-region) (defun emacs-session-filename (session-id) "Construct a filename to save the session in based on SESSION-ID.