aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.spacemacs302
-rw-r--r--amethyst4
-rwxr-xr-xos-x_move_in.sh5
m---------vim/plugins/floobits-neovim0
-rw-r--r--zshrc5
5 files changed, 314 insertions, 2 deletions
diff --git a/.spacemacs b/.spacemacs
new file mode 100644
index 0000000..e210354
--- /dev/null
+++ b/.spacemacs
@@ -0,0 +1,302 @@
1;; -*- mode: emacs-lisp -*-
2;; This file is loaded by Spacemacs at startup.
3;; It must be stored in your home directory.
4
5(defun dotspacemacs/layers ()
6 "Configuration Layers declaration."
7 (setq-default
8 ;; List of additional paths where to look for configuration layers.
9 ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
10 dotspacemacs-configuration-layer-path '()
11 ;; List of configuration layers to load. If it is the symbol `all' instead
12 ;; of a list then all discovered layers will be installed.
13 dotspacemacs-configuration-layers
14 '(
15 ;; ----------------------------------------------------------------
16 ;; Example of useful layers you may want to use right away.
17 ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
18 ;; <M-m f e R> (Emacs style) to install them.
19 ;; ----------------------------------------------------------------
20 auto-completion
21 ;; better-defaults
22 ;; (colors :variables
23 ;; colors-enable-rainbow-identifiers t
24 ;; colors-enable-nyan-cat-progress bar ,(display-graphic p)
25 ;; )
26 dash
27 deft
28 django
29 emacs-lisp
30 eyebrowse
31 erc
32 git
33 gnus
34 ;; github
35 html
36 javascript
37 markdown
38 org
39 osx
40 (python :variables
41 ;;python-enable-yapf-format-on-save t
42 )
43 (shell :variables
44 shell-default-height 20
45 shell-default-term-shell "/bin/zsh"
46 shell-default-position 'bottom)
47 ruby
48 ;; salt
49 syntax-checking
50 vagrant
51 version-control
52 )
53 ;; List of additional packages that will be installed without being
54 ;; wrapped in a layer. If you need some configuration for these
55 ;; packages then consider to create a layer, you can also put the
56 ;; configuration in `dotspacemacs/config'.
57 dotspacemacs-additional-packages '(
58 editorconfig
59 elfeed
60 hackernews
61 ;; helm-dash ;; osx is broken
62 itail
63 magit-gitflow
64 ;; mentor ;; rTorrent client
65 ;; sx
66 znc
67 )
68 ;; A list of packages and/or extensions that will not be install and loaded.
69 dotspacemacs-excluded-packages '()
70 ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
71 ;; are declared in a layer which is not a member of
72 ;; the list `dotspacemacs-configuration-layers'
73 dotspacemacs-delete-orphan-packages t))
74
75(defun dotspacemacs/init ()
76 "Initialization function.
77This function is called at the very startup of Spacemacs initialization
78before layers configuration."
79 ;; This setq-default sexp is an exhaustive list of all the supported
80 ;; spacemacs settings.
81 (setq-default
82 ;; Either `vim' or `emacs'. Evil is always enabled but if the variable
83 ;; is `emacs' then the `holy-mode' is enabled at startup.
84 dotspacemacs-editing-style 'vim
85 ;; If non nil output loading progress in `*Messages*' buffer.
86 dotspacemacs-verbose-loading nil
87 ;; Specify the startup banner. Default value is `official', it displays
88 ;; the official spacemacs logo. An integer value is the index of text
89 ;; banner, `random' chooses a random text banner in `core/banners'
90 ;; directory. A string value must be a path to an image format supported
91 ;; by your Emacs build.
92 ;; If the value is nil then no banner is displayed.
93 dotspacemacs-startup-banner 'official
94 ;; List of items to show in the startup buffer. If nil it is disabled.
95 ;; Possible values are: `recents' `bookmarks' `projects'."
96 dotspacemacs-startup-lists '(bookmarks projects)
97 ;; List of themes, the first of the list is loaded when spacemacs starts.
98 ;; Press <SPC> T n to cycle to the next theme in the list (works great
99 ;; with 2 themes variants, one dark and one light)
100 dotspacemacs-themes '(subatomic256
101 monokai
102 zenburn)
103 ;; If non nil the cursor color matches the state color.
104 dotspacemacs-colorize-cursor-according-to-state t
105 ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
106 ;; size to make separators look not too crappy.
107 dotspacemacs-default-font '("Source Code Pro for Powerline"
108 :size 11
109 :weight normal
110 :width normal
111 :powerline-scale 1.0)
112 ;; The leader key
113 dotspacemacs-leader-key "SPC"
114 ;; The leader key accessible in `emacs state' and `insert state'
115 dotspacemacs-emacs-leader-key "M-m"
116 ;; Major mode leader key is a shortcut key which is the equivalent of
117 ;; pressing `<leader> m`. Set it to `nil` to disable it.
118 dotspacemacs-major-mode-leader-key ","
119 ;; Major mode leader key accessible in `emacs state' and `insert state'
120 dotspacemacs-major-mode-emacs-leader-key "C-M-m"
121 ;; The command key used for Evil commands (ex-commands) and
122 ;; Emacs commands (M-x).
123 ;; By default the command key is `:' so ex-commands are executed like in Vim
124 ;; with `:' and Emacs commands are executed with `<leader> :'.
125 dotspacemacs-command-key ":"
126 ;; Location where to auto-save files. Possible values are `original' to
127 ;; auto-save the file in-place, `cache' to auto-save the file to another
128 ;; file stored in the cache directory and `nil' to disable auto-saving.
129 ;; Default value is `cache'.
130 dotspacemacs-auto-save-file-location 'cache
131 ;; If non nil then `ido' replaces `helm' for some commands. For now only
132 ;; `find-files' (SPC f f) is replaced.
133 dotspacemacs-use-ido nil
134 ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
135 ;; several times cycle between the kill ring content.
136 dotspacemacs-enable-paste-micro-state nil
137 ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing
138 ;; the commands bound to the current keystrokes.
139 dotspacemacs-guide-key-delay 0.4
140 ;; If non nil a progress bar is displayed when spacemacs is loading. This
141 ;; may increase the boot time on some systems and emacs builds, set it to
142 ;; nil ;; to boost the loading time.
143 dotspacemacs-loading-progress-bar t
144 ;; If non nil the frame is fullscreen when Emacs starts up.
145 ;; (Emacs 24.4+ only)
146 dotspacemacs-fullscreen-at-startup nil
147 ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
148 ;; Use to disable fullscreen animations in OSX."
149 dotspacemacs-fullscreen-use-non-native nil
150 ;; If non nil the frame is maximized when Emacs starts up.
151 ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
152 ;; (Emacs 24.4+ only)
153 dotspacemacs-maximized-at-startup nil
154 ;; A value from the range (0..100), in increasing opacity, which describes
155 ;; the transparency level of a frame when it's active or selected.
156 ;; Transparency can be toggled through `toggle-transparency'.
157 dotspacemacs-active-transparency 90
158 ;; A value from the range (0..100), in increasing opacity, which describes
159 ;; the transparency level of a frame when it's inactive or deselected.
160 ;; Transparency can be toggled through `toggle-transparency'.
161 dotspacemacs-inactive-transparency 90
162 ;; If non nil unicode symbols are displayed in the mode line.
163 dotspacemacs-mode-line-unicode-symbols t
164 ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
165 ;; scrolling overrides the default behavior of Emacs which recenters the
166 ;; point when it reaches the top or bottom of the screen.
167 dotspacemacs-smooth-scrolling t
168 ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
169 dotspacemacs-smartparens-strict-mode nil
170 ;; Select a scope to highlight delimiters. Possible value is `all',
171 ;; `current' or `nil'. Default is `all'
172 dotspacemacs-highlight-delimiters 'all
173 ;; If non nil advises quit functions to keep server open when quitting.
174 dotspacemacs-persistent-server nil
175 ;; List of search tool executable names. Spacemacs uses the first installed
176 ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
177 dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
178 ;; The default package repository used if no explicit repository has been
179 ;; specified with an installed package.
180 ;; Not used for now.
181 dotspacemacs-default-package-repository nil
182 )
183 ;; User initialization goes here
184 )
185
186(defun dotspacemacs/config ()
187 "Configuration function.
188 This function is called at the very end of Spacemacs initialization after
189layers configuration."
190 ;;(setq anaconda-mode-remote-p "private")
191 ;;(setq anaconda-mode-host "localhost")
192 ;;(setq anaconda-mode-port 9000)
193 ;; (setenv "PYTHONPATH" "/Users/jason/Code/enderlabs/eventboard.io/apps")
194 (add-hook 'python-mode-hook
195 (lambda ()
196 ;; (setq python-shell-interpreter "python")
197 ;; (setq anaconda-mode-server-script
198 ;; "/usr/local/lib/python2.7/site-packages/anaconda_mode.py")
199 (fci-mode t)
200 (auto-fill-mode t)))
201 (add-hook 'after-init-hook #'global-flycheck-mode)
202
203 (defun ao/find-dotfile (orig-fun &rest args)
204 "Always follow symlink when using `SPC f e d'."
205 (let ((vc-follow-symlinks t)) ; Set `vc-follow-symlinks` to t just for this
206 (apply orig-fun args)))
207
208
209 ;; then, in `user-config` in `~/.spacemacs`:
210 (advice-add 'spacemacs/find-dotfile :around 'ao/find-dotfile)
211
212 ;; Open neotree after selecting a project
213 (setq projectile-switch-project-action 'neotree-projectile-action)
214
215 ;; show line numbers by default
216 (global-linum-mode t)
217
218 ;; don't highlight current line
219 (global-hl-line-mode -1)
220 ;; or searches
221 (global-evil-search-highlight-persist nil)
222
223 (setq magit-refresh-file-buffer-hook '(magit-revert-buffer magit-update-vc-modeline))
224
225 (setq indent-tabs-mode nil)
226
227 ;; (setq magit-revert-buffers 'ask)
228
229 (setq neo-vc-integration nil)
230 (setq neo-theme 'nerd)
231 (setq neo-show-hidden-files nil)
232 (setq neo-hidden-regexp-list '("\\.pyc$" "~$" "^#.*#$" "\\.elc$" "^__pycache__$"))
233
234 ;; you can select levels of indents with it. If you wanted to select the
235 ;; entire body of a class, you just go to the first indent level (any
236 ;; variable or function definition) and type `vii'. If you want to include
237 ;; the `class Whatever` line, it's `viI' `vai' and `vaI' include whitespace
238 ;; at the top and bottom
239 (evil-define-text-object evil-inner-buffer (count &optional beg end type)
240 (evil-select-paren "\\`" "\\'" beg end type count nil))
241 (define-key evil-inner-text-objects-map "g" 'evil-inner-buffer)
242
243 ;; fixes an anaconda mode bug
244 ;; (evil-leader/set-key-for-mode 'python-mode
245 ;; "mhh" 'anaconda-mode-show-doc
246 ;; "mgg" 'anaconda-mode-find-definitions
247 ;; "mga" 'anaconda-mode-find-assignments
248 ;; "mgu" 'anaconda-mode-find-references)
249 ;; (evil-leader/set-key-for-mode 'cython-mode
250 ;; "mhh" 'anaconda-mode-view-doc
251 ;; "mgg" 'anaconda-mode-goto
252 ;; "mgu" 'anaconda-mode-usages)
253
254 (defun ao/expand-completion-table (orig-fun &rest args)
255 "Extract all symbols from COMPLETION-TABLE before calling projectile--tags."
256 (let ((completion-table (all-completions "" (car args))))
257 (funcall orig-fun completion-table)))
258
259 ;; Tags
260 (advice-add 'projectile--tags :around #'ao/expand-completion-table)
261
262
263 (setq web-mode-enable-engine-detection t)
264 (setq web-mode-engines-alist
265 '(("django" . "\\.html\\'")))
266
267
268)
269
270;; Do not write anything past this comment. This is where Emacs will
271;; auto-generate custom variable definitions.
272(custom-set-variables
273 ;; custom-set-variables was added by Custom.
274 ;; If you edit it by hand, you could mess it up, so be careful.
275 ;; Your init file should contain only one such instance.
276 ;; If there is more than one, they won't work right.
277 '(ahs-case-fold-search nil)
278 '(ahs-default-range (quote ahs-range-whole-buffer))
279 '(ahs-idle-interval 0.25)
280 '(ahs-idle-timer 0 t)
281 '(ahs-inhibit-face-list nil)
282 '(elfeed-feeds (quote ("http://nullprogram.com/feed/")))
283 '(paradox-github-token t)
284 '(ring-bell-function (quote ignore) t)
285 '(safe-local-variable-values
286 (quote
287 (
288 (python-shell-virtualenv-path . "/Users/jason/.virtualenvs/eb")
289 (projectile-tags-command . "ctags --exclude=migrations --exclude=dumps --exclude=media --exclude=.git --exclude=.vagrant --exclude=\"*.js\" --exclude=\"*.css\" --exclude=\"*.html\" --exclude=\"*.scss\" -Re -f \"%s\" %s")
290 (engine . django)))))
291(custom-set-faces
292 ;; custom-set-faces was added by Custom.
293 ;; If you edit it by hand, you could mess it up, so be careful.
294 ;; Your init file should contain only one such instance.
295 ;; If there is more than one, they won't work right.
296 '(default ((t (:background "#1c1c1c" :foreground "#d7d7d7"))))
297 '(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
298 '(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil)))))
299 '(elfeed-feeds
300 (quote
301 ("http://www.commandlinefu.com/commands/browse/rss")))
302
diff --git a/amethyst b/amethyst
index 332baf9..6929ad6 100644
--- a/amethyst
+++ b/amethyst
@@ -223,7 +223,9 @@
223 "com.zaal.cjournalmac", 223 "com.zaal.cjournalmac",
224 "com.dayoneapp.dayone", 224 "com.dayoneapp.dayone",
225 "com.enderlabs.EBTerminal", 225 "com.enderlabs.EBTerminal",
226 "com.kapeli.dash" 226 "com.kapeli.dash",
227 "com.jriver.MediaCenter20",
228 "com.perforce.p4merge"
227 ], 229 ],
228 "float-small-windows": true, 230 "float-small-windows": true,
229 "mouse-follows-focus": false, 231 "mouse-follows-focus": false,
diff --git a/os-x_move_in.sh b/os-x_move_in.sh
index a2a852f..ac73ab8 100755
--- a/os-x_move_in.sh
+++ b/os-x_move_in.sh
@@ -71,3 +71,8 @@ fi
71./common_move_in.sh 71./common_move_in.sh
72 72
73open "/opt/homebrew-cask/Caskroom/little-snitch/3.5.1/Little Snitch Installer.app" 73open "/opt/homebrew-cask/Caskroom/little-snitch/3.5.1/Little Snitch Installer.app"
74
75cd /System/Library/LaunchAgents
76launchctl unload -w com.apple.photolibraryd.plist
77launchctl unload -w com.apple.screensharing.MessagesAgent.plist
78launchctl unload -w com.apple.screensharing.agent.plist
diff --git a/vim/plugins/floobits-neovim b/vim/plugins/floobits-neovim
deleted file mode 160000
Subproject 9b737c3474f8286d4c79d1a7f94abfef2f5304f
diff --git a/zshrc b/zshrc
index 7d61a80..cc4e71c 100644
--- a/zshrc
+++ b/zshrc
@@ -48,7 +48,7 @@ DISABLE_CORRECTION="true"
48# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 48# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
49# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 49# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
50# Example format: plugins=(rails git textmate ruby lighthouse) 50# Example format: plugins=(rails git textmate ruby lighthouse)
51plugins=(zsh-syntax-highlighting git git-extras docker fabric gpg-agent pep8 pip pyenv virtualenvwrapper pylint python vagrant web-search wd) 51plugins=(zsh-syntax-highlighting git git-extras docker fabric gpg-agent pep8 pip pyenv pylint python vagrant web-search wd)
52 52
53source $ZSH/oh-my-zsh.sh 53source $ZSH/oh-my-zsh.sh
54 54
@@ -74,3 +74,6 @@ export VAGRANT_DOTFILE_PATH=~/.vagrant.d/projects
74 74
75alias fixfileperm='find /music -type f -exec chmod 0644 {} \;' 75alias fixfileperm='find /music -type f -exec chmod 0644 {} \;'
76alias cleanbranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin' 76alias cleanbranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin'
77alias bib='source ~/.virtualenvs/bib/bin/activate'
78alias ducks='du -cks * |sort -rn |head -11'
79source /usr/local/bin/virtualenvwrapper_lazy.sh