diff options
| -rw-r--r-- | .spacemacs | 301 |
1 files changed, 206 insertions, 95 deletions
| @@ -3,8 +3,14 @@ | |||
| 3 | ;; It must be stored in your home directory. | 3 | ;; It must be stored in your home directory. |
| 4 | 4 | ||
| 5 | (defun dotspacemacs/layers () | 5 | (defun dotspacemacs/layers () |
| 6 | "Configuration Layers declaration." | 6 | "Configuration Layers declaration. |
| 7 | You should not put any user code in this function besides modifying the variable | ||
| 8 | values." | ||
| 7 | (setq-default | 9 | (setq-default |
| 10 | ;; Base distribution to use. This is a layer contained in the directory | ||
| 11 | ;; `+distribution'. For now available distributions are `spacemacs-base' | ||
| 12 | ;; or `spacemacs'. (default 'spacemacs) | ||
| 13 | dotspacemacs-distribution 'spacemacs | ||
| 8 | ;; List of additional paths where to look for configuration layers. | 14 | ;; List of additional paths where to look for configuration layers. |
| 9 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') | 15 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') |
| 10 | dotspacemacs-configuration-layer-path '() | 16 | dotspacemacs-configuration-layer-path '() |
| @@ -19,10 +25,11 @@ | |||
| 19 | ;; ---------------------------------------------------------------- | 25 | ;; ---------------------------------------------------------------- |
| 20 | auto-completion | 26 | auto-completion |
| 21 | ;; better-defaults | 27 | ;; better-defaults |
| 22 | ;; (colors :variables | 28 | (colors :variables |
| 23 | ;; colors-enable-rainbow-identifiers t | 29 | ;; colors-enable-rainbow-identifiers t |
| 24 | ;; colors-enable-nyan-cat-progress bar ,(display-graphic p) | 30 | ;; colors-enable-nyan-cat-progress bar ,(display-graphic p) |
| 25 | ;; ) | 31 | ) |
| 32 | cscope | ||
| 26 | dash | 33 | dash |
| 27 | deft | 34 | deft |
| 28 | django | 35 | django |
| @@ -33,6 +40,7 @@ | |||
| 33 | gnus | 40 | gnus |
| 34 | ;; github | 41 | ;; github |
| 35 | html | 42 | html |
| 43 | jabber | ||
| 36 | javascript | 44 | javascript |
| 37 | markdown | 45 | markdown |
| 38 | org | 46 | org |
| @@ -55,34 +63,40 @@ | |||
| 55 | ;; packages then consider to create a layer, you can also put the | 63 | ;; packages then consider to create a layer, you can also put the |
| 56 | ;; configuration in `dotspacemacs/config'. | 64 | ;; configuration in `dotspacemacs/config'. |
| 57 | dotspacemacs-additional-packages '( | 65 | dotspacemacs-additional-packages '( |
| 66 | dired+ | ||
| 58 | editorconfig | 67 | editorconfig |
| 59 | elfeed | 68 | elfeed |
| 60 | hackernews | 69 | hackernews |
| 61 | ;; helm-dash ;; osx is broken | 70 | ;; helm-dash ;; osx is broken |
| 62 | itail | 71 | ;; itail |
| 63 | magit-gitflow | 72 | magit-gitflow |
| 64 | ;; mentor ;; rTorrent client | 73 | ;; mentor ;; rTorrent client |
| 74 | org-journal | ||
| 65 | ;; sx | 75 | ;; sx |
| 66 | znc | 76 | ;; znc |
| 67 | ) | 77 | ) |
| 68 | ;; A list of packages and/or extensions that will not be install and loaded. | 78 | ;; A list of packages and/or extensions that will not be install and loaded. |
| 69 | dotspacemacs-excluded-packages '() | 79 | dotspacemacs-excluded-packages '() |
| 70 | ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that | 80 | ;; 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 | 81 | ;; are declared in a layer which is not a member of |
| 72 | ;; the list `dotspacemacs-configuration-layers' | 82 | ;; the list `dotspacemacs-configuration-layers'. (default t) |
| 73 | dotspacemacs-delete-orphan-packages t)) | 83 | dotspacemacs-delete-orphan-packages t)) |
| 74 | 84 | ||
| 75 | (defun dotspacemacs/init () | 85 | (defun dotspacemacs/init () |
| 76 | "Initialization function. | 86 | "Initialization function. |
| 77 | This function is called at the very startup of Spacemacs initialization | 87 | This function is called at the very startup of Spacemacs initialization |
| 78 | before layers configuration." | 88 | before layers configuration. |
| 89 | You should not put any user code in there besides modifying the variable | ||
| 90 | values." | ||
| 79 | ;; This setq-default sexp is an exhaustive list of all the supported | 91 | ;; This setq-default sexp is an exhaustive list of all the supported |
| 80 | ;; spacemacs settings. | 92 | ;; spacemacs settings. |
| 81 | (setq-default | 93 | (setq-default |
| 82 | ;; Either `vim' or `emacs'. Evil is always enabled but if the variable | 94 | ;; One of `vim', `emacs' or `hybrid'. Evil is always enabled but if the |
| 83 | ;; is `emacs' then the `holy-mode' is enabled at startup. | 95 | ;; variable is `emacs' then the `holy-mode' is enabled at startup. `hybrid' |
| 84 | dotspacemacs-editing-style 'vim | 96 | ;; uses emacs key bindings for vim's insert mode, but otherwise leaves evil |
| 85 | ;; If non nil output loading progress in `*Messages*' buffer. | 97 | ;; unchanged. (default 'vim) |
| 98 | dotspacemacs-editing-style 'emacs | ||
| 99 | ;; If non nil output loading progress in `*Messages*' buffer. (default nil) | ||
| 86 | dotspacemacs-verbose-loading nil | 100 | dotspacemacs-verbose-loading nil |
| 87 | ;; Specify the startup banner. Default value is `official', it displays | 101 | ;; Specify the startup banner. Default value is `official', it displays |
| 88 | ;; the official spacemacs logo. An integer value is the index of text | 102 | ;; the official spacemacs logo. An integer value is the index of text |
| @@ -90,21 +104,23 @@ before layers configuration." | |||
| 90 | ;; directory. A string value must be a path to an image format supported | 104 | ;; directory. A string value must be a path to an image format supported |
| 91 | ;; by your Emacs build. | 105 | ;; by your Emacs build. |
| 92 | ;; If the value is nil then no banner is displayed. | 106 | ;; If the value is nil then no banner is displayed. |
| 93 | dotspacemacs-startup-banner 'official | 107 | dotspacemacs-startup-banner 'random |
| 94 | ;; List of items to show in the startup buffer. If nil it is disabled. | 108 | ;; List of items to show in the startup buffer. If nil it is disabled. |
| 95 | ;; Possible values are: `recents' `bookmarks' `projects'." | 109 | ;; Possible values are: `recents' `bookmarks' `projects'. |
| 96 | dotspacemacs-startup-lists '(bookmarks projects) | 110 | ;; (default '(recents projects)) |
| 111 | dotspacemacs-startup-lists '(recents projects) | ||
| 97 | ;; List of themes, the first of the list is loaded when spacemacs starts. | 112 | ;; 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 | 113 | ;; 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) | 114 | ;; with 2 themes variants, one dark and one light) |
| 100 | dotspacemacs-themes '(subatomic256 | 115 | |
| 116 | dotspacemacs-themes '(jbeans | ||
| 101 | monokai | 117 | monokai |
| 102 | zenburn) | 118 | zenburn) |
| 103 | ;; If non nil the cursor color matches the state color. | 119 | ;; If non nil the cursor color matches the state color. |
| 104 | dotspacemacs-colorize-cursor-according-to-state t | 120 | dotspacemacs-colorize-cursor-according-to-state t |
| 105 | ;; Default font. `powerline-scale' allows to quickly tweak the mode-line | 121 | ;; Default font. `powerline-scale' allows to quickly tweak the mode-line |
| 106 | ;; size to make separators look not too crappy. | 122 | ;; size to make separators look not too crappy. |
| 107 | dotspacemacs-default-font '("Source Code Pro for Powerline" | 123 | dotspacemacs-default-font '("Inconsolata for Powerline" |
| 108 | :size 11 | 124 | :size 11 |
| 109 | :weight normal | 125 | :weight normal |
| 110 | :width normal | 126 | :width normal |
| @@ -112,85 +128,193 @@ before layers configuration." | |||
| 112 | ;; The leader key | 128 | ;; The leader key |
| 113 | dotspacemacs-leader-key "SPC" | 129 | dotspacemacs-leader-key "SPC" |
| 114 | ;; The leader key accessible in `emacs state' and `insert state' | 130 | ;; The leader key accessible in `emacs state' and `insert state' |
| 131 | ;; (default "M-m") | ||
| 115 | dotspacemacs-emacs-leader-key "M-m" | 132 | dotspacemacs-emacs-leader-key "M-m" |
| 116 | ;; Major mode leader key is a shortcut key which is the equivalent of | 133 | ;; Major mode leader key is a shortcut key which is the equivalent of |
| 117 | ;; pressing `<leader> m`. Set it to `nil` to disable it. | 134 | ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",") |
| 118 | dotspacemacs-major-mode-leader-key "," | 135 | dotspacemacs-major-mode-leader-key "," |
| 119 | ;; Major mode leader key accessible in `emacs state' and `insert state' | 136 | ;; Major mode leader key accessible in `emacs state' and `insert state'. |
| 137 | ;; (default "C-M-m) | ||
| 120 | dotspacemacs-major-mode-emacs-leader-key "C-M-m" | 138 | dotspacemacs-major-mode-emacs-leader-key "C-M-m" |
| 121 | ;; The command key used for Evil commands (ex-commands) and | 139 | ;; The command key used for Evil commands (ex-commands) and |
| 122 | ;; Emacs commands (M-x). | 140 | ;; Emacs commands (M-x). |
| 123 | ;; By default the command key is `:' so ex-commands are executed like in Vim | 141 | ;; By default the command key is `:' so ex-commands are executed like in Vim |
| 124 | ;; with `:' and Emacs commands are executed with `<leader> :'. | 142 | ;; with `:' and Emacs commands are executed with `<leader> :'. |
| 125 | dotspacemacs-command-key ":" | 143 | dotspacemacs-command-key ":" |
| 144 | ;; If non nil `Y' is remapped to `y$'. (default t) | ||
| 145 | dotspacemacs-remap-Y-to-y$ t | ||
| 126 | ;; Location where to auto-save files. Possible values are `original' to | 146 | ;; 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 | 147 | ;; 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. | 148 | ;; file stored in the cache directory and `nil' to disable auto-saving. |
| 129 | ;; Default value is `cache'. | 149 | ;; (default 'cache) |
| 130 | dotspacemacs-auto-save-file-location 'cache | 150 | dotspacemacs-auto-save-file-location 'cache |
| 131 | ;; If non nil then `ido' replaces `helm' for some commands. For now only | 151 | ;; If non nil then `ido' replaces `helm' for some commands. For now only |
| 132 | ;; `find-files' (SPC f f) is replaced. | 152 | ;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and |
| 153 | ;; `find-contrib-file' (SPC f e c) are replaced. (default nil) | ||
| 133 | dotspacemacs-use-ido nil | 154 | dotspacemacs-use-ido nil |
| 155 | ;; If non nil, `helm' will try to miminimize the space it uses. (default nil) | ||
| 156 | dotspacemacs-helm-resize nil | ||
| 157 | ;; if non nil, the helm header is hidden when there is only one source. | ||
| 158 | ;; (default nil) | ||
| 159 | dotspacemacs-helm-no-header nil | ||
| 160 | ;; define the position to display `helm', options are `bottom', `top', | ||
| 161 | ;; `left', or `right'. (default 'bottom) | ||
| 162 | dotspacemacs-helm-position 'bottom | ||
| 134 | ;; If non nil the paste micro-state is enabled. When enabled pressing `p` | 163 | ;; If non nil the paste micro-state is enabled. When enabled pressing `p` |
| 135 | ;; several times cycle between the kill ring content. | 164 | ;; several times cycle between the kill ring content. (default nil) |
| 136 | dotspacemacs-enable-paste-micro-state nil | 165 | dotspacemacs-enable-paste-micro-state nil |
| 137 | ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing | 166 | ;; Which-key delay in seconds. The which-key buffer is the popup listing |
| 138 | ;; the commands bound to the current keystrokes. | 167 | ;; the commands bound to the current keystroke sequence. (default 0.4) |
| 139 | dotspacemacs-guide-key-delay 0.4 | 168 | dotspacemacs-which-key-delay 0.4 |
| 169 | ;; Which-key frame position. Possible values are `right', `bottom' and | ||
| 170 | ;; `right-then-bottom'. right-then-bottom tries to display the frame to the | ||
| 171 | ;; right; if there is insufficient space it displays it at the bottom. | ||
| 172 | ;; (default 'bottom) | ||
| 173 | dotspacemacs-which-key-position 'bottom | ||
| 140 | ;; If non nil a progress bar is displayed when spacemacs is loading. This | 174 | ;; 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 | 175 | ;; may increase the boot time on some systems and emacs builds, set it to |
| 142 | ;; nil ;; to boost the loading time. | 176 | ;; nil to boost the loading time. (default t) |
| 143 | dotspacemacs-loading-progress-bar t | 177 | dotspacemacs-loading-progress-bar t |
| 144 | ;; If non nil the frame is fullscreen when Emacs starts up. | 178 | ;; If non nil the frame is fullscreen when Emacs starts up. (default nil) |
| 145 | ;; (Emacs 24.4+ only) | 179 | ;; (Emacs 24.4+ only) |
| 146 | dotspacemacs-fullscreen-at-startup nil | 180 | dotspacemacs-fullscreen-at-startup nil |
| 147 | ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. | 181 | ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. |
| 148 | ;; Use to disable fullscreen animations in OSX." | 182 | ;; Use to disable fullscreen animations in OSX. (default nil) |
| 149 | dotspacemacs-fullscreen-use-non-native nil | 183 | dotspacemacs-fullscreen-use-non-native nil |
| 150 | ;; If non nil the frame is maximized when Emacs starts up. | 184 | ;; If non nil the frame is maximized when Emacs starts up. |
| 151 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. | 185 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. |
| 152 | ;; (Emacs 24.4+ only) | 186 | ;; (default nil) (Emacs 24.4+ only) |
| 153 | dotspacemacs-maximized-at-startup nil | 187 | dotspacemacs-maximized-at-startup nil |
| 154 | ;; A value from the range (0..100), in increasing opacity, which describes | 188 | ;; 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. | 189 | ;; the transparency level of a frame when it's active or selected. |
| 156 | ;; Transparency can be toggled through `toggle-transparency'. | 190 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
| 157 | dotspacemacs-active-transparency 90 | 191 | dotspacemacs-active-transparency 90 |
| 158 | ;; A value from the range (0..100), in increasing opacity, which describes | 192 | ;; 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. | 193 | ;; the transparency level of a frame when it's inactive or deselected. |
| 160 | ;; Transparency can be toggled through `toggle-transparency'. | 194 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
| 161 | dotspacemacs-inactive-transparency 90 | 195 | dotspacemacs-inactive-transparency 90 |
| 162 | ;; If non nil unicode symbols are displayed in the mode line. | 196 | ;; If non nil unicode symbols are displayed in the mode line. (default t) |
| 163 | dotspacemacs-mode-line-unicode-symbols t | 197 | dotspacemacs-mode-line-unicode-symbols t |
| 164 | ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth | 198 | ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth |
| 165 | ;; scrolling overrides the default behavior of Emacs which recenters the | 199 | ;; scrolling overrides the default behavior of Emacs which recenters the |
| 166 | ;; point when it reaches the top or bottom of the screen. | 200 | ;; point when it reaches the top or bottom of the screen. (default t) |
| 167 | dotspacemacs-smooth-scrolling t | 201 | dotspacemacs-smooth-scrolling t |
| 168 | ;; If non-nil smartparens-strict-mode will be enabled in programming modes. | 202 | ;; If non-nil smartparens-strict-mode will be enabled in programming modes. |
| 203 | ;; (default nil) | ||
| 169 | dotspacemacs-smartparens-strict-mode nil | 204 | dotspacemacs-smartparens-strict-mode nil |
| 170 | ;; Select a scope to highlight delimiters. Possible value is `all', | 205 | ;; Select a scope to highlight delimiters. Possible values are `any', |
| 171 | ;; `current' or `nil'. Default is `all' | 206 | ;; `current', `all' or `nil'. Default is `all' (highlight any scope and |
| 207 | ;; emphasis the current one). (default 'all) | ||
| 172 | dotspacemacs-highlight-delimiters 'all | 208 | dotspacemacs-highlight-delimiters 'all |
| 173 | ;; If non nil advises quit functions to keep server open when quitting. | 209 | ;; If non nil advises quit functions to keep server open when quitting. |
| 210 | ;; (default nil) | ||
| 174 | dotspacemacs-persistent-server nil | 211 | dotspacemacs-persistent-server nil |
| 175 | ;; List of search tool executable names. Spacemacs uses the first installed | 212 | ;; List of search tool executable names. Spacemacs uses the first installed |
| 176 | ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. | 213 | ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. |
| 214 | ;; (default '("ag" "pt" "ack" "grep")) | ||
| 177 | dotspacemacs-search-tools '("ag" "pt" "ack" "grep") | 215 | dotspacemacs-search-tools '("ag" "pt" "ack" "grep") |
| 178 | ;; The default package repository used if no explicit repository has been | 216 | ;; The default package repository used if no explicit repository has been |
| 179 | ;; specified with an installed package. | 217 | ;; specified with an installed package. |
| 180 | ;; Not used for now. | 218 | ;; Not used for now. (default nil) |
| 181 | dotspacemacs-default-package-repository nil | 219 | dotspacemacs-default-package-repository nil |
| 182 | ) | 220 | )) |
| 183 | ;; User initialization goes here | 221 | |
| 222 | (defvar ao/v-dired-omit t | ||
| 223 | "If dired-omit-mode enabled by default. Don't setq me.") | ||
| 224 | |||
| 225 | (defun ao/dired-omit-switch () | ||
| 226 | "This function is a small enhancement for `dired-omit-mode', which will | ||
| 227 | \"remember\" omit state across Dired buffers." | ||
| 228 | (interactive) | ||
| 229 | (if (eq ao/v-dired-omit t) | ||
| 230 | (setq ao/v-dired-omit nil) | ||
| 231 | (setq ao/v-dired-omit t)) | ||
| 232 | (ao/dired-omit-caller) | ||
| 233 | (when (equal major-mode 'dired-mode) | ||
| 234 | (revert-buffer))) | ||
| 235 | |||
| 236 | (defun ao/dired-omit-caller () | ||
| 237 | (if ao/v-dired-omit | ||
| 238 | (setq dired-omit-mode t) | ||
| 239 | (setq dired-omit-mode nil))) | ||
| 240 | |||
| 241 | (defun ao/dired-back-to-top() | ||
| 242 | "Move to the first file." | ||
| 243 | (interactive) | ||
| 244 | (beginning-of-buffer) | ||
| 245 | (dired-next-line 2)) | ||
| 246 | |||
| 247 | (defun ao/dired-jump-to-bottom() | ||
| 248 | "Move to last file." | ||
| 249 | (interactive) | ||
| 250 | (end-of-buffer) | ||
| 251 | (dired-next-line -1)) | ||
| 252 | |||
| 253 | (defun ao/what-face (pos) | ||
| 254 | "Describes the face at the current cursor position. | ||
| 255 | Helps making themes, put your cursor at the point you want to know the face of, and | ||
| 256 | M-x ao/what-face." | ||
| 257 | (interactive "d") | ||
| 258 | (let ((face (or (get-char-property (point) 'read-face-name) | ||
| 259 | (get-char-property (point) 'face)))) | ||
| 260 | (if face (message "Face: %s" face) (message "No face at %d" pos)))) | ||
| 261 | |||
| 262 | (defun ao/expand-completion-table (orig-fun &rest args) | ||
| 263 | "Extract all symbols from COMPLETION-TABLE before calling projectile--tags." | ||
| 264 | (let ((completion-table (all-completions "" (car args)))) | ||
| 265 | (funcall orig-fun completion-table))) | ||
| 266 | |||
| 267 | (defun ao/find-dotfile (orig-fun &rest args) | ||
| 268 | "Always follow symlink when using `SPC f e d'." | ||
| 269 | (let ((vc-follow-symlinks t)) | ||
| 270 | (apply orig-fun args))) | ||
| 271 | |||
| 272 | (defun load-ropemacs () | ||
| 273 | "Load pymacs and ropemacs" | ||
| 274 | (interactive) | ||
| 275 | (require 'pymacs) | ||
| 276 | (pymacs-load "ropemacs" "rope-") | ||
| 277 | ;; Automatically save project python buffers before refactorings | ||
| 278 | (setq ropemacs-confirm-saving 'nil) | ||
| 279 | ) | ||
| 280 | |||
| 281 | (defun dotspacemacs/user-init () | ||
| 282 | "Initialization function for user code. | ||
| 283 | It is called immediately after `dotspacemacs/init'. You are free to put any | ||
| 284 | user code." | ||
| 285 | (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") | ||
| 286 | (add-to-list 'load-path "~/.emacs.d/private/local/") | ||
| 184 | ) | 287 | ) |
| 185 | 288 | ||
| 186 | (defun dotspacemacs/config () | 289 | (defun dotspacemacs/user-config () |
| 187 | "Configuration function. | 290 | "Configuration function for user code. |
| 188 | This function is called at the very end of Spacemacs initialization after | 291 | This function is called at the very end of Spacemacs initialization after |
| 189 | layers configuration." | 292 | layers configuration." |
| 190 | ;;(setq anaconda-mode-remote-p "private") | 293 | |
| 191 | ;;(setq anaconda-mode-host "localhost") | 294 | (setq org-agenda-files '("~/Code/org")) |
| 192 | ;;(setq anaconda-mode-port 9000) | 295 | (global-set-key (kbd "C-c C-g") 'evil-escape) |
| 193 | ;; (setenv "PYTHONPATH" "/Users/jason/Code/enderlabs/eventboard.io/apps") | 296 | (global-vi-tilde-fringe-mode -1) |
| 297 | |||
| 298 | (setq | ||
| 299 | mac-command-modifier 'meta | ||
| 300 | |||
| 301 | org-agenda-include-diary t | ||
| 302 | |||
| 303 | web-mode-enable-engine-detection t | ||
| 304 | web-mode-engines-alist '(("django" . "\\.html\\'")) | ||
| 305 | |||
| 306 | neo-vc-integration nil | ||
| 307 | neo-theme 'nerd | ||
| 308 | neo-show-hidden-files nil | ||
| 309 | neo-hidden-regexp-list '("\\.pyc$" "~$" "^#.#$" "\\.elc$" "^__pycache__") | ||
| 310 | |||
| 311 | jabber-invalid-certificate-servers '("im.zzq.org") | ||
| 312 | jabber-account-list '(("jason@im.zzq.org" | ||
| 313 | (:network-server . "im.zzq.org"))) | ||
| 314 | |||
| 315 | magit-refresh-file-buffer-hook '(magit-revert-buffer magit-update-vc-modeline) | ||
| 316 | ) | ||
| 317 | |||
| 194 | (add-hook 'python-mode-hook | 318 | (add-hook 'python-mode-hook |
| 195 | (lambda () | 319 | (lambda () |
| 196 | ;; (setq python-shell-interpreter "python") | 320 | ;; (setq python-shell-interpreter "python") |
| @@ -212,7 +336,6 @@ layers configuration." | |||
| 212 | ;; Open neotree after selecting a project | 336 | ;; Open neotree after selecting a project |
| 213 | (setq projectile-switch-project-action 'neotree-projectile-action) | 337 | (setq projectile-switch-project-action 'neotree-projectile-action) |
| 214 | 338 | ||
| 215 | ;; show line numbers by default | ||
| 216 | (global-linum-mode t) | 339 | (global-linum-mode t) |
| 217 | 340 | ||
| 218 | ;; don't highlight current line | 341 | ;; don't highlight current line |
| @@ -220,52 +343,37 @@ layers configuration." | |||
| 220 | ;; or searches | 343 | ;; or searches |
| 221 | (global-evil-search-highlight-persist nil) | 344 | (global-evil-search-highlight-persist nil) |
| 222 | 345 | ||
| 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 | 346 | ||
| 259 | ;; Tags | 347 | ;; Dired |
| 260 | (advice-add 'projectile--tags :around #'ao/expand-completion-table) | 348 | (require 'dired-x) ; Enable dired-x |
| 349 | (require 'dired+) ; Enable dired+ | ||
| 350 | (setq-default dired-omit-files-p t) ; Don't show hidden files by default | ||
| 351 | (setq dired-omit-files (concat dired-omit-files "\\|^\\..+$\\|\\.pyc$")) | ||
| 352 | (add-hook 'dired-mode-hook 'ao/dired-omit-caller) | ||
| 353 | (define-key evil-normal-state-map (kbd "_") 'projectile-dired) | ||
| 354 | (define-key evil-normal-state-map (kbd "-") 'dired-jump) | ||
| 355 | (setq diredp-hide-details-initially-flag nil) | ||
| 356 | (advice-add 'spacemacs/find-dotfile :around 'ao/find-dotfile) | ||
| 357 | ;; Make `gg' and `G' do the correct thing | ||
| 358 | (eval-after-load "dired-mode" | ||
| 359 | (evilify dired-mode dired-mode-map | ||
| 360 | "f" 'helm-find-files | ||
| 361 | "h" 'diredp-up-directory-reuse-dir-buffer | ||
| 362 | "l" 'diredp-find-file-reuse-dir-buffer | ||
| 363 | "I" 'ao/dired-omit-switch | ||
| 364 | "gg" 'ao/dired-back-to-top | ||
| 365 | "G" 'ao/dired-jump-to-bottom)) | ||
| 261 | 366 | ||
| 262 | 367 | ||
| 263 | (setq web-mode-enable-engine-detection t) | 368 | ;; (defun ao/expand-completion-table (orig-fun &rest args) |
| 264 | (setq web-mode-engines-alist | 369 | ;; "Extract all symbols from COMPLETION-TABLE before calling projectile--tags." |
| 265 | '(("django" . "\\.html\\'"))) | 370 | ;; (let ((completion-table (all-completions "" (car args)))) |
| 371 | ;; (funcall orig-fun completion-table))) | ||
| 266 | 372 | ||
| 373 | ;; ;; Tags | ||
| 374 | ;; (advice-add 'projectile--tags :around #'ao/expand-completion-table) | ||
| 267 | 375 | ||
| 268 | ) | 376 | ) |
| 269 | 377 | ||
| 270 | ;; Do not write anything past this comment. This is where Emacs will | 378 | ;; Do not write anything past this comment. This is where Emacs will |
| 271 | ;; auto-generate custom variable definitions. | 379 | ;; auto-generate custom variable definitions. |
| @@ -279,15 +387,19 @@ layers configuration." | |||
| 279 | '(ahs-idle-interval 0.25) | 387 | '(ahs-idle-interval 0.25) |
| 280 | '(ahs-idle-timer 0 t) | 388 | '(ahs-idle-timer 0 t) |
| 281 | '(ahs-inhibit-face-list nil) | 389 | '(ahs-inhibit-face-list nil) |
| 282 | '(elfeed-feeds (quote ("http://nullprogram.com/feed/"))) | 390 | '(custom-safe-themes |
| 391 | (quote | ||
| 392 | ("040d5032864c4b6ca2d7ebc89689cd3617edf585ff4db4244baa170f6d18c899" default))) | ||
| 393 | '(org-agenda-files | ||
| 394 | (quote | ||
| 395 | ("~/Code/enderlabs/eventboard.io/agenda.org" "/Users/jason/Code/org/aws.org"))) | ||
| 283 | '(paradox-github-token t) | 396 | '(paradox-github-token t) |
| 284 | '(ring-bell-function (quote ignore) t) | 397 | '(ring-bell-function (quote ignore) t) |
| 285 | '(safe-local-variable-values | 398 | '(safe-local-variable-values |
| 286 | (quote | 399 | (quote |
| 287 | ( | 400 | ((python-shell-virtualenv-path . "/Users/jason/.virtualenvs/eb") |
| 288 | (python-shell-virtualenv-path . "/Users/jason/.virtualenvs/eb") | 401 | (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") |
| 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") | 402 | (engine . django))))) |
| 290 | (engine . django))))) | ||
| 291 | (custom-set-faces | 403 | (custom-set-faces |
| 292 | ;; custom-set-faces was added by Custom. | 404 | ;; custom-set-faces was added by Custom. |
| 293 | ;; If you edit it by hand, you could mess it up, so be careful. | 405 | ;; If you edit it by hand, you could mess it up, so be careful. |
| @@ -296,7 +408,6 @@ layers configuration." | |||
| 296 | '(default ((t (:background "#1c1c1c" :foreground "#d7d7d7")))) | 408 | '(default ((t (:background "#1c1c1c" :foreground "#d7d7d7")))) |
| 297 | '(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil)))) | 409 | '(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))))) | 410 | '(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil))))) |
| 299 | '(elfeed-feeds | 411 | '(elfeed-feeds |
| 300 | (quote | 412 | (quote |
| 301 | ("http://www.commandlinefu.com/commands/browse/rss"))) | 413 | ("http://www.commandlinefu.com/commands/browse/rss"))) |
| 302 | |||