|
|
|
@ -1,36 +1,36 @@
|
|
|
|
|
(require 'package) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Hide Startup Message |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(setq inhibit-startup-message t) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Always follow symbolic links to version controlled files |
|
|
|
|
;; |
|
|
|
|
;; I prefer this option because I generally only get this message when I edit |
|
|
|
|
;; a dotfile under version control, and repeatedly typing "yes" is annoying. |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(setq vc-follow-symlinks t) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Small fix for keyboard internationalization problems |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(set-keyboard-coding-system nil) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Disable Splash Screen |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(defvar inhibit-splash-screen) |
|
|
|
|
(setq inhibit-splash-screen t) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Enable MELPA |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(add-to-list 'package-archives |
|
|
|
|
'("melpa" . "https://melpa.org/packages/") t) |
|
|
|
@ -40,18 +40,15 @@
|
|
|
|
|
|
|
|
|
|
(package-initialize) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Install and load Packages |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(load-file "~/.emacs.d/package.el") |
|
|
|
|
|
|
|
|
|
;; Load flx after its installed |
|
|
|
|
(require 'flx-ido) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Theme |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(set-frame-parameter nil 'background-mode 'dark) |
|
|
|
|
(set-terminal-parameter nil 'background-mode 'dark) |
|
|
|
@ -63,33 +60,33 @@
|
|
|
|
|
|
|
|
|
|
(powerline-center-theme) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Line Numbering - Note: Might not look good with files with 10,000 or more lines |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(global-linum-mode t) |
|
|
|
|
|
|
|
|
|
(defvar linum-format) |
|
|
|
|
(setq linum-format "%4d \u2502 ") |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Hook framemove into windmove for seamless window to frame transitions |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(setq framemove-hook-into-windmove t) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;; Ido Mode |
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Helm Configuration |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(helm-mode t) |
|
|
|
|
(helm-adaptive-mode t) ;; Sort results by most frequently used |
|
|
|
|
|
|
|
|
|
;; Use ag instead of grep for in-file searches in helm-find-file |
|
|
|
|
|
|
|
|
|
(defvar ido-enable-flex-matching) |
|
|
|
|
(defvar ido-everywhere) |
|
|
|
|
(defvar ido-use-faces) |
|
|
|
|
(setq ido-enable-flex-matching t) |
|
|
|
|
(setq ido-everywhere t) |
|
|
|
|
(setq ido-use-faces nil) |
|
|
|
|
(flx-ido-mode 1) |
|
|
|
|
(ido-mode 1) |
|
|
|
|
(when (executable-find "ag") |
|
|
|
|
(setq helm-grep-default-command "ag -H --nogroup --nocolor %e %p %f" |
|
|
|
|
helm-grep-default-recurse-command "ag -H --nogroup --nocolor %e %p %f")) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
;; Enable Autocomplete |
|
|
|
@ -137,6 +134,7 @@
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
;; Unbind C-t from transpose |
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-t") nil) |
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-d") nil) |
|
|
|
@ -173,6 +171,10 @@
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "RET") 'electric-newline-and-maybe-indent) |
|
|
|
|
|
|
|
|
|
;; Helm |
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-x C-f") 'helm-find-files) |
|
|
|
|
|
|
|
|
|
;;------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
(custom-set-variables |
|
|
|
|