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