Created
January 26, 2015 19:24
-
-
Save nickfun/d6d440b9768959f799c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(custom-safe-themes | |
(quote | |
("c5a044ba03d43a725bd79700087dea813abcb6beb6be08c7eb3303ed90782482" "e56f1b1c1daec5dbddc50abd00fcd00f6ce4079f4a7f66052cf16d96412a09a9" "6a37be365d1d95fad2f4d185e51928c789ef7a4ccf17e7ca13ad63a8bf5b922f" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "923faef2c7ed017e63f517703c846c6190c31400261e8abdb1be06d5b46ea19a" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "fb4bf07618eab33c89d72ddc238d3c30918a501cf7f086f2edf8f4edba9bd59f" "4c9ba94db23a0a3dea88ee80f41d9478c151b07cb6640b33bfc38be7c2415cc4" default))) | |
'(dired-listing-switches "-alFh") | |
'(ediff-diff-options "-w") | |
'(ediff-split-window-function (quote split-window-horizontally)) | |
'(ediff-window-setup-function (quote ediff-setup-windows-plain)) | |
'(exec-path | |
(quote | |
("c:/program files/7-zip/" "C:/Program Files (x86)/Aspell/bin" "c:/Python27/" "C:/Windows/system32" "C:/Windows" "C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/Program Files (x86)/nodejs/" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/PHP" "C:/ProgramData/Composer/bin" "C:/Program Files/Java/jdk1.7.0_51/bin" "C:/Ruby193/bin" "C:/Users/nickf/AppData/Roaming/npm/" "C:/php/" "C:/users/nickf/bin/" "C:/Program Files (x86)/Git/bin" "C:/Program Files/apache-ant-1.9.3/bin" "C:/Users/nickf/apps/maven/bin" "c:/Users/nickf/apps/emacs-24.3/bin" "c:/Users/nickf/apps/emacs-24.3/lib-src/oo-spd/i386" "c:/Users/nickf/apps/emacs-24.3/lib-src/oo/i386"))) | |
'(inhibit-startup-screen t) | |
'(make-backup-files nil) | |
'(org-agenda-files | |
(quote | |
("c:/Users/nickf/Documents/CCC Documents/homepage.org" "c:/users/nickf/Documents/wl documents/bulletin.org" "c:/Users/nickf/Documents/WL Documents/2.0/reports.org"))) | |
'(sml/mode-width | |
(if | |
(eq powerline-default-separator | |
(quote arrow)) | |
(quote right) | |
(quote full))) | |
'(sml/pos-id-separator | |
(quote | |
("" | |
(:propertize " " face powerline-active1) | |
(:eval | |
(propertize " " | |
(quote display) | |
(funcall | |
(intern | |
(format "powerline-%s-%s" powerline-default-separator | |
(car powerline-default-separator-dir))) | |
(quote powerline-active1) | |
(quote powerline-active2)))) | |
(:propertize " " face powerline-active2)))) | |
'(sml/pos-minor-modes-separator | |
(quote | |
("" | |
(:propertize " " face powerline-active1) | |
(:eval | |
(propertize " " | |
(quote display) | |
(funcall | |
(intern | |
(format "powerline-%s-%s" powerline-default-separator | |
(cdr powerline-default-separator-dir))) | |
(quote powerline-active1) | |
nil))) | |
(:propertize " " face sml/global)))) | |
'(sml/pre-id-separator | |
(quote | |
("" | |
(:propertize " " face sml/global) | |
(:eval | |
(propertize " " | |
(quote display) | |
(funcall | |
(intern | |
(format "powerline-%s-%s" powerline-default-separator | |
(car powerline-default-separator-dir))) | |
nil | |
(quote powerline-active1)))) | |
(:propertize " " face powerline-active1)))) | |
'(sml/pre-minor-modes-separator | |
(quote | |
("" | |
(:propertize " " face powerline-active2) | |
(:eval | |
(propertize " " | |
(quote display) | |
(funcall | |
(intern | |
(format "powerline-%s-%s" powerline-default-separator | |
(cdr powerline-default-separator-dir))) | |
(quote powerline-active2) | |
(quote powerline-active1)))) | |
(:propertize " " face powerline-active1)))) | |
'(sml/pre-modes-separator (propertize " " (quote face) (quote sml/modes)))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) | |
;; Default font size is 16px | |
(set-face-attribute 'default nil :height 160) | |
;; IDO mode on by default | |
(require 'ido) | |
(ido-mode t) | |
;; Marmalade package repo | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives | |
'("MELPA" . "http://melpa.milkbox.net/packages/")) | |
(package-initialize) | |
;; Spellcheck | |
(add-to-list 'exec-path "C:/Program Files (x86)/Aspell/bin") | |
(setq ispell-program-name "aspell") | |
(setq ispell-personal-dictionary "C:/Program Files (x86)/Aspell/dict/american.alias") | |
;; php files open in PHP mode | |
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode)) | |
(require 'ispell) | |
(global-set-key (kbd "<f8>") 'ispell-word) | |
(global-set-key (kbd "C-<f8>") 'flyspell-mode) | |
;; | |
;; Tabs!! | |
;; | |
(setq tab-stop-list (number-sequence 4 200 4)) | |
(setq tab-width 4) | |
(defun fn-fix-the-tabs () | |
"Try to make tabs work the way I want :)" | |
(interactive) | |
(setq indent-tabs-mode t) | |
(setq tab-width 4) | |
(setq c-basic-offset 4) | |
(setq tab-stop-list (number-sequence 4 200 4)) | |
(define-key c-mode-map (kbd "TAB") 'self-insert-command)) | |
(add-hook 'php-mode-hook 'fn-fix-the-tabs) | |
(add-hook 'js-mode-hook 'fn-fix-the-tabs) | |
;; Set my theme | |
(load-theme 'nzenburn) | |
;; main-line, a modern powerline.el | |
;(require 'main-line) | |
;(setq main-line-separator-style 'arrow14) | |
;; Turn off the tool-bar | |
(tool-bar-mode 0) | |
(menu-bar-mode 0) | |
;; when I keep hitting page down, send the cursor to the end of the buffer | |
(setq scroll-error-top-bottom t) | |
;; SCSS dont compile when i save the file, I have grunt-watch for that | |
(setq scss-compile-at-save nil) | |
;; ediff should start in vertical split | |
;; make all tab presses go through `indent-to` | |
(setq-default indent-tabs-mode nil) | |
;; make sure SMEX is always on | |
(eval-after-load "smex-autoloads" | |
'(progn | |
(global-set-key (kbd "M-x") 'smex) | |
(global-set-key (kbd "M-X") 'smex-major-mode-commands) | |
(setq smex-save-file "~/.emacs.d/.smex.last"))) | |
;; *********************************************** | |
;; Multi-cursors | |
;; 2014-05-12 | |
;; | |
;; Make emacs work like Sublime Text | |
;; | |
(require 'multiple-cursors) | |
(global-set-key (kbd "C-d") 'mc/mark-next-like-this) ; select something, press C-d to add selection | |
(global-set-key (kbd "C-l") 'mc/edit-lines) ; select several lines, use C-l to put cursor on every line | |
(global-unset-key (kbd "M-<down-mouse-1>")) | |
(global-set-key (kbd "M-<down-mouse-1>") 'mc/add-cursor-on-click) | |
;; | |
;; *********************************************** | |
;; *********************************************** | |
;; Org stuff | |
;; --------- | |
;; do not put the export into the kill ring & clipboard | |
(setq org-export-copy-to-kill-ring nil) | |
;; week starts on monday | |
(setq org-agenda-start-on-weekday 1) | |
;; Keybindngs | |
(global-set-key (kbd "<f7>") 'org-clock-goto) | |
(global-set-key (kbd "<f10>") 'org-clock-in) | |
(global-set-key (kbd "<f11>") 'org-clock-out) | |
(global-set-key (kbd "<f12>") 'org-agenda) | |
(global-set-key "\C-cl" 'org-store-link) | |
(global-set-key "\C-cc" 'org-capture) | |
(global-set-key "\C-ca" 'org-agenda) | |
(global-set-key "\C-cb" 'org-iswitchb) | |
(global-set-key (kbd "C-c j") 'org-move-subtree-up) | |
(global-set-key (kbd "C-c k") 'org-move-subtree-down) | |
;; Save clock history across Emacs sessions | |
(setq org-clock-persist 'history) | |
(org-clock-persistence-insinuate) | |
;; Turn off HTML Export preable/postable | |
(setq org-html-preable nil) | |
(setq org-html-postable t) | |
;; SQL hilight in org mode ?? | |
(add-hook 'sql-mode-hook | |
(lambda () | |
(sql-highlight-mysql-keywords))) | |
;; Export slideshows with Impress JS | |
;;(require 'ox-impress-js) | |
;;(require 'ox-rst) | |
;;(require 'ox-textile) | |
(require 'textile-mode) | |
;; *********************************************** | |
(put 'upcase-region 'disabled nil) | |
;; Company Mode | |
;; ------------ | |
(require 'helm-config) | |
(require 'company) | |
(global-company-mode) | |
(global-set-key (kbd "C-t") 'company-complete) | |
;;(global-set-key (kbd "C-t") 'helm-company) | |
;; Twig templates should use web mode | |
(add-to-list 'auto-mode-alist '("\\.tpl\\.html\\'" . web-mode)) | |
;; Freemarker tempaltes should use web mode | |
(add-to-list 'auto-mode-alist '("\\.ftl\\'" . web-mode)) | |
;; Show where the file ends using the fringe | |
(setq default-indicate-empty-lines t) | |
(put 'downcase-region 'disabled nil) | |
;; your HTTP well | |
(require 'know-your-http-well) | |
;; | |
;; Auto-Load files on startup | |
;; | |
(setq nf-autoload-files | |
'("c:/Users/nickf/Documents/CCC Documents/homepage.org" | |
"c:/users/nickf/Documents/wl documents/bulletin.org" | |
"c:/Users/nickf/Documents/WL Documents/2.0/reports.org")) | |
(defun load-davis-org-files () | |
(mapcar 'find-file nf-autoload-files)) | |
(if (equal (system-name) "780-1195") | |
(load-davis-org-files)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment