Browse Source

Add relative line numbering and what-not

master
Taylor Bockman 9 years ago
parent
commit
e1accf280f
  1. 11
      dotfiles/emacs.d/init.el
  2. 2
      dotfiles/emacs.d/package.el

11
dotfiles/emacs.d/init.el

@ -111,6 +111,7 @@
(mode . js2-mode)
(mode . clojure-mode)
(mode . cc-mode)
(mode . stylus-mode)
(mode . scheme-mode)
(mode . lisp-mode))
)
@ -244,7 +245,7 @@
(setq fci-rule-column 120)
(add-hook 'after-change-major-mode-hook 'fci-mode)
;;--------------------------------------------------------------------------------------
;;---------------------- ---------------------------------------------------------------
;; Line Numbering - Note: Might not look good with files with 10,000 or more lines
;;--------------------------------------------------------------------------------------
@ -253,6 +254,8 @@
(defvar linum-format)
(setq linum-format "%4d \u2502")
;; TODO: Figure out a way to make linum-relative keep the same linum-mode styles
;;--------------------------------------------------------------------------------------
;; Hook framemove into windmove for seamless window to frame transitions
;;--------------------------------------------------------------------------------------
@ -408,6 +411,8 @@
(global-set-key (kbd "C-x C-b") nil)
(global-set-key (kbd "C-c r") nil)
;; Neotree binds are prefixed by C-t
(global-set-key (kbd "C-t t") 'neotree-toggle)
@ -449,8 +454,12 @@
;(global-set-key (kbd "C-s") 'helm-do-ag-this-file)
;; IBuffer
(global-set-key (kbd "C-x C-b") 'ibuffer)
;; Relative line numbering
(global-set-key (kbd "C-c r") 'linum-relative-toggle)
;;--------------------------------------------------------------------------------------
;; Theme
;;--------------------------------------------------------------------------------------

2
dotfiles/emacs.d/package.el

@ -2,7 +2,7 @@
(defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode circe framemove flycheck
esh-help fill-column-indicator flycheck-clojure flycheck-haskell flycheck-rust
flycheck-pos-tip gitignore-mode haskell-mode helm helm-ag helm-projectile
flycheck-pos-tip gitignore-mode haskell-mode helm helm-ag linum-relative helm-projectile
js2-mode less-css-mode magit neotree paredit scala-mode2 scss-mode powerline
projectile rust-mode color-theme-solarized wrap-region stylus-mode rainbow-delimiters)
"Packages to make sure are installed")

Loading…
Cancel
Save