Browse Source

Add expand-region and config for it

master
Taylor Bockman 9 years ago
parent
commit
32659004d7
  1. 3
      .gitignore
  2. 10
      dotfiles/emacs.d/init.el
  3. 2
      dotfiles/emacs.d/package.el

3
.gitignore vendored

@ -22,3 +22,6 @@ elpa/
projectile-bookmarks.eld
*.dat
helm-adaptive-history
/smex-items
/.smex-items
/smex-save-file

10
dotfiles/emacs.d/init.el

@ -274,6 +274,13 @@
(global-fci-mode t)
;;--------------------------------------------------------------------------------------
;; Expand region settings
;;--------------------------------------------------------------------------------------
(require 'expand-region)
(pending-delete-mode t) ; Selected region contents are replaced on typing
;;--------------------------------------------------------------------------------------
;; Line Numbering - Note: Might not look good with files with 10,000 or more lines
;;--------------------------------------------------------------------------------------
@ -511,6 +518,9 @@
;; Relative line numbering
(global-set-key (kbd "C-c r") 'linum-relative-toggle)
;; Expand region
(global-set-key (kbd "C-@") 'er/expand-region)
;;--------------------------------------------------------------------------------------
;; Theme
;;--------------------------------------------------------------------------------------

2
dotfiles/emacs.d/package.el

@ -1,6 +1,6 @@
(require 'cl)
(defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode circe framemove flycheck
(defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode circe expand-region framemove flycheck
esh-help fill-column-indicator flycheck-clojure flycheck-haskell flycheck-rust
flycheck-pos-tip gitignore-mode golden-ratio haskell-mode swiper linum-relative
js2-mode less-css-mode magit neotree paredit scala-mode2 scss-mode smex powerline

Loading…
Cancel
Save