Last active
December 16, 2016 15:20
-
-
Save palesz/4b706ea41fbb43d84949d4e73b5074ac to your computer and use it in GitHub Desktop.
Emacs package list
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
;; Package list I'm depending on and needs to make sure that it's installed | |
(setq my-package-list '(use-package | |
magit | |
org | |
cider | |
clj-refactor | |
parinfer | |
auto-complete | |
evil | |
exec-path-from-shell | |
ox-pandoc | |
helm | |
org-pomodoro | |
excorporate | |
ob-http | |
powerline | |
go-mode)) | |
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(package-initialize) | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
;; fetch the list of packages available | |
(unless package-archive-contents | |
(package-refresh-contents)) | |
;; install | |
(dolist (i-package my-package-list) | |
(unless (package-installed-p i-package) | |
(package-install i-package))) | |
(exec-path-from-shell-initialize) | |
(add-hook 'clojure-mode-hook 'parinfer-mode) | |
(require 'helm-config) | |
(global-set-key (kbd "M-x") 'helm-M-x) | |
(require 'evil) | |
(evil-mode 1) | |
(require 'ox-pandoc) | |
(setq auto-save-timeout 5) | |
(setq org-confirm-babel-evaluate nil) | |
(require 'ob-shell) | |
(require 'ob-js) | |
(require 'ob-python) | |
(require 'ob-clojure) | |
(setq org-plantuml-jar-path "/usr/local/Cellar/plantuml/8031/plantuml.8031.jar") | |
(org-babel-do-load-languages | |
'org-babel-load-languages | |
'((shell . t) | |
(js . t) | |
(emacs-lisp . t) | |
(plantuml . t) | |
(clojure . t) | |
(http . t) | |
(python . t))) | |
(setq org-babel-clojure-backend 'cider) | |
(require 'cider) | |
;; smooth scrolling | |
(setq mouse-wheel-scroll-amount '(1 ((shift) . 2) ((control) . nil))) | |
(setq mouse-wheel-progressive-speed nil) | |
;; paren mode | |
(show-paren-mode 1) | |
(setq show-paren-delay 0) | |
(global-set-key (kbd "C-x G") 'magit-status) | |
(global-set-key "\C-cl" 'org-store-link) | |
(global-set-key "\C-ca" 'org-agenda) | |
(global-set-key "\C-cc" 'org-capture) | |
(global-set-key "\C-cb" 'org-iswitchb) | |
;; horizontal and vertical split settings | |
(setq split-height-threshold nil) | |
(setq split-width-threshold 160) | |
;; disable the toolbar | |
(setq tool-bar-mode 0) | |
(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. | |
'(ansi-color-faces-vector | |
[default default default italic underline success warning error]) | |
'(ansi-color-names-vector | |
["black" "red3" "ForestGreen" "yellow3" "blue" "magenta3" "DeepSkyBlue" "gray50"]) | |
'(custom-enabled-themes (quote (leuven))) | |
'(custom-safe-themes | |
(quote | |
("38e64ea9b3a5e512ae9547063ee491c20bd717fe59d9c12219a0b1050b439cdd" "89b5c642f4bbcf955215c8f756ae352cdc6b7b0375b01da1f1aa5fd652ae822e" default))) | |
'(fci-rule-color "#383838") | |
'(magit-log-section-arguments (quote ("--graph" "--color" "--decorate" "-n256"))) | |
'(org-agenda-files | |
(quote | |
("~/Documents/drive/interviews.org" "~/Documents/drive/amazon.org"))) | |
'(org-capture-templates | |
(quote | |
(("p" "Personal Task" entry | |
(file+headline "~/Documents/drive/personal.org" "Incoming tasks") | |
"* TODO %? | |
%i | |
%a") | |
("n" "Personal note" entry | |
(file+datetree "~/Documents/drive/personal.org") | |
"* TODO %? | |
%i | |
%a") | |
("t" "Amazon Task" entry | |
(file+headline "~/Documents/drive/amazon.org" "Captured") | |
"* TODO %? | |
%i | |
%a") | |
("j" "Amazon Journal Entry" entry | |
(file+datetree "~/Documents/drive/amazon.org") | |
"* %? | |
Entered on %U | |
%i | |
%a")))) | |
'(package-selected-packages | |
(quote | |
(powerline wanderlust ob-http excorporate org-dashboard clj-refactor org-pomodoro helm go-mode plantuml ob-clojure json-mode json-reformat google google-maps use-package parinfer magit cider))) | |
'(show-paren-mode t)) | |
(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. | |
) | |
(use-package parinfer | |
:ensure t | |
:bind | |
(("C-," . parinfer-toggle-mode)) | |
:init | |
(progn | |
(setq parinfer-extensions | |
'(defaults ; should be included. | |
pretty-parens ; different paren styles for different modes. | |
evil ; If you use Evil. | |
lispy ; If you use Lispy. With this extension, you should install Lispy and do not enable lispy-mode directly. | |
smart-tab ; C-b & C-f jump positions and smart shift with tab & S-tab. | |
smart-yank)) ; Yank behavior depend on mode. | |
(add-hook 'clojure-mode-hook #'parinfer-mode) | |
(add-hook 'emacs-lisp-mode-hook #'parinfer-mode))) | |
(put 'upcase-region 'disabled nil) | |
(global-set-key (kbd "M-1") 'beginning-of-buffer) | |
(global-set-key (kbd "M-2") 'end-of-buffer) | |
(global-set-key (kbd "C-c p") 'org-pomodoro) | |
(global-set-key (kbd "C-c m") 'evil-mode) | |
(put 'narrow-to-region 'disabled nil) | |
(setq fill-column 70) | |
(powerline-default-theme) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment