-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.el
176 lines (176 loc) · 13.4 KB
/
custom.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
(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.
'(ac-ignore-case 'smart nil nil "Use the case I used, blast it. Case-insensitivity should be opt-in. :P")
'(ac-max-width 0.5)
'(ac-trigger-commands-on-completing
'(delete-backward-char backward-delete-char backward-delete-char-untabify autopair-backspace paredit-backward-delete paredit-backward-delete-word smart-dash-insert ne-smart-dash-hacks-sh-mode-insert))
'(ac-trigger-key "TAB")
'(afp-always-fill-on-self-insert t)
'(afp-fill-after-functions
'(evil-delete backward-delete-char backward-delete-char-untabify kill-region evil-change yank yank-pop evil-paste-after))
'(afp-fill-comments-only-mode-list
'(emacs-lisp-mode sh-mode python-mode js-mode php-mode xml-mode nxml-mode diff-mode gitconfig-mode lua-mode yaml-mode ruby-mode))
'(afp-fill-keys
'(32 46 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90) nil nil "A very stupid way to make paragraphs fill fluidly both while writing and editing - make sure the hook runs after all letters. It would be smarter to submit a PR to bypass the filter var in the first place, probably, maybe with support for filling after deletion (if that is feasible).")
'(afp-fill-on-self-insert t)
'(ag-ignore-list '("node_modules"))
'(ascii-window-size 10)
'(auto-insert-query nil)
'(auto-revert-verbose t nil nil "I can't remember ever caring that auto-revert did its job. Thus, I'm asking it to stop telling me.")
'(blink-cursor-blinks 0 nil nil "blink!!!!")
'(blink-cursor-mode t nil nil "For some reason, I really like blinky cursors.")
'(c-basic-offset 4 nil nil "4 spaces is, on average, the standard.")
'(c-default-style '((php-mode . "php") (cc-mode . "linux")))
'(column-number-mode t)
'(cquery-executable "~/third-party/cquery/build/release/bin/cquery")
'(create-lockfiles nil nil nil "Since these lockfiles are only respected by Emacs, and I don't think I've ever even shared a machine with another emacser, let alone a specific file, I'm turning this off. It horked the build process for a project at work.")
'(cursor-type 'bar nil nil "I use vertical bar so I can tell quickly when I'm in a buffer without evil-mode.")
'(custom-safe-themes
'("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" "c433c87bd4b64b8ba9890e8ed64597ea0f8eb0396f4c9a9e01bd20a04d15d358" "00445e6f15d31e9afaa23ed0d765850e9cd5e929be5e8e63b114a3346236c44c" "0598c6a29e13e7112cfbc2f523e31927ab7dce56ebb2016b567e1eff6dc1fd4f" "d91ef4e714f05fff2070da7ca452980999f5361209e679ee988e3c432df24347" "d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default))
'(debug-on-quit nil)
'(delete-selection-mode t)
'(elfeed-feeds
'("https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rdsupdates.rss" "http://feeds.feedburner.com/blogspot/hsDu" "https://news-web.php.net/group.php?group=php.announce&format=rss" "https://developer.apple.com/news/rss/news.rss"))
'(evil-mode-line-format nil nil nil "Since I use a block cursor in normal mode and a bar for insert, I don't need to see my evil-state in the modeline.")
'(evil-undo-system 'undo-tree)
'(evil-want-fine-undo t)
'(exec-path-from-shell-arguments '("-l"))
'(exec-path-from-shell-variables '("PATH" "MANPATH" "EMAIL") nil nil "Since I use notmuch and mbsync at work and home, it's convenient to have Emacs pick up my EMAIL var.")
'(fill-column 79 nil nil "Code should generally be under 80 columns wide for readability.")
'(flyspell-issue-message-flag nil)
'(git-link-use-commit t nil nil "I like my hyperlinks to not change their destinations just because someone makes a new commit, in most cases. When I actually want to point to a branch, I can edit it by hand.")
'(glasses-face 'bold nil nil "Bold isn't quite strong enough - I'll have to look into this further.")
'(glasses-original-separator "" nil nil "Don't change existing separators.")
'(glasses-separate-parentheses-p nil nil nil "spaces before parens are ugly.")
'(glasses-separator "" nil nil "Rather than putting in separators, just use a different face for camelHumps.")
'(global-font-lock-mode t nil nil "Everyone likes syntax coloration.")
'(helm-for-files-preferred-list
'(helm-source-buffers-list helm-source-recentf helm-source-bookmarks helm-source-file-cache helm-source-files-in-current-dir))
'(indent-tabs-mode nil nil nil "I dislike using tabs for indentation. Spaces are a simpler way to indent.")
'(inhibit-startup-screen t nil nil "The emacs startup message is a needless annoyance.")
'(ispell-extra-args '("--ignore-case") nil nil "When programming, sometimes you lowercase things that are normally uppercased. I should figure out how to do this only in prog-modes, but I'm lazy and I rarely screw up capitalization.")
'(ispell-program-name "aspell")
'(js2-indent-switch-body t nil nil "Crockford may not like it, but I do.")
'(js2-mode-show-parse-errors nil)
'(js2-mode-show-strict-warnings nil)
'(ledger-reconcile-default-commodity "USD" nil nil "I'm not sure whether I should use '$' or 'USD', but I have USD at present.")
'(line-number-mode t)
'(lsp-log-io nil)
'(lsp-php-show-file-parse-notifications nil nil nil "I don't really care about these messages. I just want to know when things fail.")
'(lsp-print-io nil)
'(lsp-ui-sideline-show-hover nil)
'(magit-blame-arguments '("-w" "-M" "-C" "-C" "-C") nil nil "Look hard for places other than right here that the text may have originated. See git-blame manual page for details.")
'(magit-bury-buffer-function 'quit-window)
'(magit-diff-refine-hunk 'all)
'(magit-diff-use-overlays nil)
'(magit-push-always-verify nil)
'(magit-revert-buffers t t)
'(magit-use-overlays nil)
'(mail-user-agent 'notmuch-user-agent)
'(mailcap-download-directory "~/Downloads")
'(markdown-command "cmark")
'(max-specpdl-size 5000 nil nil "I get the \"Variable binding depth exceeds max-specpdl-size\" error a lot when using lsp-mode on a large PHP codebase at $DAYJOB. I'm therefore bumping this up to see if it helps.")
'(menu-bar-mode nil nil nil "I don't really use the menus, either.")
'(message-kill-buffer-on-exit t nil nil "If I have sent a message, I have little reason to keep the buffer around.")
'(mm-inline-large-images 'resize)
'(mo-git-blame-git-blame-args "-M -C -w" nil nil "Follow movement in a file, look for movement between files in the same commit, and ignore whitespace changes.")
'(multi-term-dedicated-window-height 24)
'(notmuch-address-command 'internal)
'(notmuch-archive-tags '("-inbox" "-unread"))
'(notmuch-saved-searches
'((:name "Learn Tech" :query "tag:learn-tech")
(:name "Third-party software" :query "tag:third-party-software" :sort-order nil)
(:name "inbox" :query "tag:inbox AND tag:unread" :key "i" :sort-order nil)
(:name "unread" :query "tag:unread" :key "u" :sort-order nil)
(:name "flagged" :query "tag:flagged" :key "f" :sort-order nil)
(:name "sent" :query "tag:sent" :key "t" :sort-order nil)
(:name "Unread Emails In Watched Threads" :query "tag:watched and tag:unread" :key "w")
(:name "drafts" :query "tag:draft" :key "d" :sort-order nil)
(:name "all mail" :query "*" :key "a" :sort-order nil)
(:name "Recent mail" :query "*" :sort-order newest-first)
(:name "Bug Reports" :query "tag:bug-reports")
(:name "Sent" :query "from:[email protected]" :sort-order newest-first :search-type nil)))
'(notmuch-search-oldest-first t nil nil "This is the default value, but I wanted to explicitly record that I prefer it, after trying both. If you're running a workflow, you usually want to see the oldest thing first, as all else being equal older emails should get responses sooner than newer ones. When you're just searching, if you get lots of results you can just refine your search to find what you're looking for, so the order isn't really relevant there.")
'(notmuch-show-all-tags-list t nil nil "I like seeing these. I'm not exactly sure why.")
'(package-enable-at-startup nil)
'(package-native-compile t)
'(package-quickstart t nil nil "I like my startup time to be as low as it reasonably can.")
'(package-selected-packages
'(rg ripgrep accent async-backup code-review tzc evil-textobj-tree-sitter khalel notmuch-addr notmuch-transient qrencode sidecar-locals bufler separedit sexp-diff vcard ac-emmet ac-helm ac-html ac-html-csswatcher ac-ispell ac-slime ace-jump-mode aggressive-fill-paragraph anzu ascii backup-walker bats-mode beacon browse-kill-ring browse-url-dwim bug-hunter cask-mode compact-docstrings csv cycle-quotes cygwin-mount diffview dynamic-spaces el2markdown eldoc-overlay-mode elisp-def elpl elpygen esup evil-commentary evil-escape evil-indent-textobject evil-leader evil-tutor flycheck-css-colorguard focus-autosave-mode frame-cmds free-keys git-blamed git-gutter git-gutter-fringe+ git-walktree gitattributes-mode gitconfig-mode gitignore-mode gnuplot-mode goto-line-preview helm-git-files hideshowvis iss-mode js-doc jscs key-chord know-your-http-well literate-coffee-mode lsp-java lsp-origami macrostep magit-patch-changelog markdown-changelog minimap mo-git-blame names neotree nginx-mode origami osx-plist parse-it php-auto-yasnippets pip-requirements popwin puppet-mode pyenv-mode pyimpsort regex-tool reveal-in-folder reveal-in-osx-finder rfc-mode s sane-term scss-mode shell-pop sicp skewer-reload-stylesheets slack smart-tabs-mode string-edit string-inflection sublimity tagedit tea-time tern-auto-complete toggle-quotes undo-tree yasnippet-classic-snippets))
'(php-mode-coding-style 'psr2 nil nil "PSR-2 is not ideal, but it's a standard.")
'(php-mode-template-compatibility nil nil nil "I use web-mode for PHP templates, and therefore I really don't want php-mode trying to deal with them.")
'(php-template-compatibility nil nil nil "I use web-mode for PHP templates, and therefore I really don't want php-mode trying to deal with them.")
'(projectile-indexing-method 'alien)
'(projectile-use-git-grep t)
'(require-final-newline t)
'(safe-local-variable-values
'((mangle-whitespace . t)
(checkdoc-minor-mode . t)
(elisp-lint-indent-specs
(git-gutter:awhen . 1))
(helm-ag--extra-options . "--ignore elpa/archives")
(ne-yas-auto-insert-snippet-name . "how-i-code-post")
(ne-yas-auto-insert-snippet-name . "package")
(eval setq flycheck-eslint-rulesdir
(concat nateeag/dir-locals-dir "node_modules/camel_case"))
(flycheck-eslint-rulesdir concat nateeag/dir-locals-dir "node_modules/camel_case")
(eval set
(make-local-variable 'nateeag/dir-locals-dir)
(file-name-directory
(let
((d
(dir-locals-find-file ".")))
(if
(stringp d)
d
(car d)))))
(flycheck-eslint-rulesdir concat nateeag/project-path "node_modules/camel_case")
(eval set
(make-local-variable 'nateeag/project-path)
(file-name-directory
(let
((d
(dir-locals-find-file ".")))
(if
(stringp d)
d
(car d)))))
(scss-compile-at-save)
(eval add-to-list 'after-save-hook 'hit-servlet)
(eval add-hook 'after-save-hook 'hit-servlet nil t)
(php-auto-yasnippet-required-files
(list "~/github/gitlist/vendor/autoload.php"))
(eval highlight-regexp "^ *")))
'(scroll-bar-mode nil)
'(scroll-conservatively 20)
'(send-mail-function 'smtpmail-send-it)
'(sentence-end-double-space nil nil nil "I do not use double-spaces after sentences. Neither should you.")
'(shell-pop-full-span t)
'(shell-pop-universal-key "C-'")
'(show-paren-mode t)
'(smart-dash-c-modes '(c-mode c++-mode objc-mode php-mode web-mode js2-mode))
'(smtpmail-smtp-server "smtp.gmail.com")
'(smtpmail-smtp-service 465)
'(smtpmail-stream-type 'ssl)
'(tab-width 4 nil nil "When a project prefers tabs, this is the width I usually see.")
'(tool-bar-mode nil nil nil "The toolbar is an even more needless annoyance.")
'(tramp-default-method "ssh")
'(transient-mark-mode 1 nil nil "I like seeing my selections.")
'(undo-tree-auto-save-history nil)
'(undo-tree-enable-undo-in-region nil nil nil "I have turned this off in hopes of defeating the horrible history-eating bug in undo-tree.el that's documented in my readme.")
'(visible-bell t nil nil "STOP THE RINGING")
'(word-wrap t nil nil "I can't believe I went this long not realizing I could just set this to get more readable word wrap, while still seeing logical lines as logical lines.")
'(yas-also-auto-indent-first-line t)
'(yas-expand-only-for-last-commands
'(self-insert-command smart-dash-insert web-mode-smart-dash-insert ac-complete ac-expand) nil nil "Only trigger yasnippet while first typing. Makes TAB indent even if inadvertantly over a yasnippet's key.")
'(yas-wrap-around-region 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.
'(default ((((class color) (min-colors 89)) (:foreground "#839496" :background "#002b36" :family "Anonymous Pro" :foundry "nil" :slant normal :weight normal :height 140 :width normal))))
'(fringe ((t nil))))