Try expand-region

master
Jacopo De Simoi 13 years ago
parent e267d656ed
commit c543f29e81
  1. 7
      init.el

@ -113,8 +113,9 @@
(setq subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([\\\\[:upper:]]+\\W*\\)\\|\\W\\w+\\)") (setq subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([\\\\[:upper:]]+\\W*\\)\\|\\W\\w+\\)")
(setq default-fill-column 120) (setq default-fill-column 120)
(add-to-list 'load-path "~/tmp" "~/tmp/expand-region.el") (add-to-list 'load-path "~/tmp")
(add-to-list 'load-path "~/tmp/expand-region.el")
(setq mouse-yank-at-point t) (setq mouse-yank-at-point t)
(blink-cursor-mode 0) (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)) (when (eq pt (point))
(beginning-of-line)))) (beginning-of-line))))
(require 'expand-region)
(global-set-key (kbd "C-a") 'smart-line-beginning) (global-set-key (kbd "C-a") 'smart-line-beginning)
(global-set-key (kbd "M-m") 'iy-go-to-char) (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) (defun emacs-session-filename (session-id)
"Construct a filename to save the session in based on SESSION-ID. "Construct a filename to save the session in based on SESSION-ID.

Loading…
Cancel
Save