Created
May 27, 2015 09:07
-
-
Save giupo/f0bfbf44f5aaa4d590b9 to your computer and use it in GitHub Desktop.
My own init.el
This file contains 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
;;; package -- init.el | |
;;; Commentary: | |
;;; Path for find and grep | |
;;; Code: | |
(when (or (eq system-type 'windows-nt) (eq system-type 'msdos)) | |
(setenv "PATH" (concat "C:\\cygwin64\\bin" (getenv "PATH"))) | |
(setq find-program "C:\\cygwin64\\bin\\find.exe" | |
grep-program "C:\\cygwin64\\bin\\grep.exe")) | |
;; Proxy settings | |
(setq url-proxy-services | |
'(("no_proxy" . "^\\(localhost\\|10.*\\|osiride-lp-027\\)") | |
("http" . "127.0.0.1:3128") | |
("https" . "127.0.0.1:3128"))) | |
;;; packages | |
(require 'package) ;; You might already have this line | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib | |
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) | |
(package-initialize) ;; You might already have this line | |
;;; butler Jenkins | |
(require 'butler) | |
(add-to-list 'butler-server-list | |
'(jenkins "<server label>" | |
(server-address . "<server address>") | |
(server-user . "<your id here>") | |
(server-password . "<Pur your server password here>"))) | |
;;; Themes | |
(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. | |
'(Linum-format "%7i ") | |
'(ansi-color-faces-vector | |
[default bold shadow italic underline bold bold-italic bold]) | |
'(ansi-color-names-vector | |
["#110F13" "#B13120" "#719F34" "#CEAE3E" "#7C9FC9" "#7868B5" "#009090" "#F4EAD5"]) | |
'(ansi-term-color-vector | |
[unspecified "#1F1611" "#660000" "#144212" "#EFC232" "#5798AE" "#BE73FD" "#93C1BC" "#E6E1DC"]) | |
'(column-number-mode t) | |
'(custom-enabled-themes (quote (deeper-blue))) | |
'(custom-safe-themes | |
(quote | |
("2b5aa66b7d5be41b18cc67f3286ae664134b95ccc4a86c9339c886dfd736132d" "930a202ae41cb4417a89bc3a6f969ebb7fcea5ffa9df6e7313df4f7a2a631434" "6634408f60b490958b19759ebf1f56d97b8b8c69d44186a6c1a8056702a73301" "f0ea6118d1414b24c2e4babdc8e252707727e7b4ff2e791129f240a2b3093e32" "7fbb8d064286706fb1e319c9d3c0a8eafc2efe6b19380aae9734c228b05350ae" "b1fdbb009af22a58788857cc5d44a4835a38088492ff0f3fea40857338cf0c3b" "ad9fc392386f4859d28fe4ef3803585b51557838dbc072762117adad37e83585" "c4e6fe8f5728a5d5fd0e92538f68c3b4e8b218bcfb5e07d8afff8731cc5f3df0" "65ae93029a583d69a3781b26044601e85e2d32be8f525988e196ba2cb644ce6a" "bc89fda3d232a3daa4eb3a9f87d6ffe1272fea46e4cf86686d9e8078e4209e2c" "572caef0c27b100a404db8d540fd5b31397f90ab660ef5539ff0863ff9bee26a" "47bff723f2aca3a9a5726abcc52a7cc4192b556dd80b3f773589994d2ed24d16" "e80a0a5e1b304eb92c58d0398464cd30ccbc3622425b6ff01eea80e44ea5130e" default))) | |
'(fci-rule-character-color "#202020") | |
'(fci-rule-color "#202020") | |
'(fringe-mode 4 nil (fringe)) | |
'(linum-format "%3i") | |
'(main-line-color1 "#1E1E1E") | |
'(main-line-color2 "#111111") | |
'(main-line-separator-style (quote chamfer)) | |
'(org-agenda-files (quote ("~/projects/org/agenda.org"))) | |
'(powerline-color1 "#1E1E1E") | |
'(powerline-color2 "#111111") | |
'(rainbow-identifiers-cie-l*a*b*-lightness 80) | |
'(rainbow-identifiers-cie-l*a*b*-saturation 18) | |
'(tool-bar-mode nil) | |
'(vc-annotate-background nil) | |
'(vc-annotate-color-map | |
(quote | |
((20 . "#d54e53") | |
(40 . "goldenrod") | |
(60 . "#e7c547") | |
(80 . "DarkOliveGreen3") | |
(100 . "#70c0b1") | |
(120 . "DeepSkyBlue1") | |
(140 . "#c397d8") | |
(160 . "#d54e53") | |
(180 . "goldenrod") | |
(200 . "#e7c547") | |
(220 . "DarkOliveGreen3") | |
(240 . "#70c0b1") | |
(260 . "DeepSkyBlue1") | |
(280 . "#c397d8") | |
(300 . "#d54e53") | |
(320 . "goldenrod") | |
(340 . "#e7c547") | |
(360 . "DarkOliveGreen3")))) | |
'(vc-annotate-very-old-color nil)) | |
(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. | |
) | |
;;; ESS init; dear R I hate you | |
(require 'ess) | |
(setq-default inferior-R-program-name "/usr/local/bin/R") | |
(setq ess-default-style 'OWN) | |
(setq ess-indent-level 2) | |
(require 'ess-smart-underscore) | |
(require 'helm-R) | |
;;; Projectile | |
(projectile-global-mode) | |
;;; show line and column numbers | |
(setq line-number-mode t) | |
(setq column-number-mode t) | |
;;; disable toolbar | |
(tool-bar-mode -1) | |
;;; configure auto-complete | |
(require 'auto-complete-config) | |
(ac-config-default) | |
;;; I want the autocomplete as soon as it can | |
;;; (setq ac-show-menu-immediatley-on-auto-complete t) | |
;;; use y or n for yes or no | |
(defalias 'yes-or-no-p 'y-or-n-p) | |
;; please, NO splash screen | |
(setq inhibit-splash-screen t) | |
;disable backup | |
(setq backup-inhibited t) | |
;disable auto save | |
(setq auto-save-default nil) | |
(add-to-list 'load-path "~/elisp") ;; Additional .el and .elc files can be placed here | |
(cua-mode 1) ;; Enable ^Z, ^X, ^C, ^V, select with mouse and shift-cursor-movement | |
(transient-mark-mode 1) ;; No region when it is not highlighted | |
;;; (setq cua-keep-region-after-copy t) ;; Standard MS-Windows behaviour | |
;;; (require 'cygwin-mount) ;; Let emacs recognize cygwin ... | |
;;; (cygwin-mount-activate) ;; ...paths (e.g. /usr/local/lib) | |
;;; (setq-default line-spacing 1) ;; Add 1 pixel between lines | |
(recentf-mode) | |
(setq-default buffer-file-coding-system 'utf-8) | |
;;; flycheck | |
(add-hook 'after-init-hook #'global-flycheck-mode) | |
(load "~/.emacs.d/lisp/flycheck-lintr.el") | |
(setenv "PATH" (concat (getenv "PATH") ":/usr/texbin")) | |
(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) | |
(require 'workgroups) | |
(workgroups-mode 1) | |
(find-file "~/projects/org/agenda.org") | |
;;; init.el ends here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment