Browse code
chore: Merge branch 'master' of github.com:fiddlerwoaroof/dotfiles
Showing 9 changed files
- emacs.d/early-init.el
- emacs.d/init.el
- emacs.d/lisp/configurations/javascript-conf.el
- emacs.d/lisp/utils.el
- emacs.d/packages/fwoar-json-navigator.el
- iterm-preferences/com.googlecode.iterm2.plist
- nix/clickhouse-darwin/.gitignore
- zsh/zsh_plugins/01-git.zsh
- zsh/zsh_plugins/dependencies/named-directories.zsh
... | ... |
@@ -1,12 +1,6 @@ |
1 | 1 |
(require 'cl-generic) |
2 | 2 |
(cl-defgeneric (setf seq-elt) (store sequence n)) |
3 | 3 |
|
4 |
-(setq package-user-dir |
|
5 |
- (locate-user-emacs-file |
|
6 |
- (concat |
|
7 |
- (file-name-as-directory "elpa") |
|
8 |
- emacs-version))) |
|
9 |
- |
|
10 | 4 |
(modify-all-frames-parameters |
11 | 5 |
'( |
12 | 6 |
(top . 701) |
... | ... |
@@ -21,6 +15,12 @@ |
21 | 15 |
(ns-transparent-titlebar . t) |
22 | 16 |
)) |
23 | 17 |
|
18 |
+(setq package-user-dir |
|
19 |
+ (locate-user-emacs-file |
|
20 |
+ (concat |
|
21 |
+ (file-name-as-directory "elpa") |
|
22 |
+ emacs-version))) |
|
23 |
+ |
|
24 | 24 |
(when (fboundp 'tool-bar-mode) |
25 | 25 |
(tool-bar-mode 0)) |
26 | 26 |
|
... | ... |
@@ -169,3 +169,5 @@ |
169 | 169 |
(find-package-json default-directory)))) |
170 | 170 |
(def-js-like-find-system js-mode) |
171 | 171 |
(def-js-like-find-system typescript-mode)) |
172 |
+(cl-defmethod fwoar/find-system (&context ((projectile-project-type) (eql 'npm))) |
|
173 |
+ (find-package-json default-directory)) |
... | ... |
@@ -170,12 +170,38 @@ from the selected region." |
170 | 170 |
(global-display-line-numbers-mode) |
171 | 171 |
(setq linum-format "%5d\u2502") |
172 | 172 |
(global-linum-mode)) |
173 |
- (set-exec-path-from-shell-PATH) |
|
173 |
+ (fwoar/source "~/.zshrc") |
|
174 | 174 |
;; NOTE: this must be here... |
175 | 175 |
(global-company-mode 1)) |
176 | 176 |
|
177 | 177 |
(defvar fwoar.is-ordinary) |
178 | 178 |
|
179 |
+(defun fwoar/source (filename) |
|
180 |
+ "Update environment variables from a shell source file." |
|
181 |
+ (interactive "fSource file: ") |
|
182 |
+ |
|
183 |
+ (message "Sourcing environment from `%s'..." filename) |
|
184 |
+ (with-temp-buffer |
|
185 |
+ (shell-command (format "diff -u <(true; export) <(source %s; export)" filename) '(4)) |
|
186 |
+ |
|
187 |
+ (let ((envvar-re "\\([^=[:space:]]+\\)=\\(.*\\)$")) |
|
188 |
+ ;; Remove environment variables |
|
189 |
+ (while (search-forward-regexp (concat "^-" envvar-re) nil t) |
|
190 |
+ (let ((var (match-string 1))) |
|
191 |
+ (message "%s" (prin1-to-string `(setenv ,var nil))) |
|
192 |
+ (setenv var nil) |
|
193 |
+ )) |
|
194 |
+ |
|
195 |
+ ;; Update environment variables |
|
196 |
+ (goto-char (point-min)) |
|
197 |
+ (while (search-forward-regexp (concat "^+" envvar-re) nil t) |
|
198 |
+ (let ((var (match-string 1)) |
|
199 |
+ (value (string-trim (match-string 2) "'" "'"))) |
|
200 |
+ (message "%s" (prin1-to-string `(setenv ,var ,value))) |
|
201 |
+ (setenv var value) |
|
202 |
+ )))) |
|
203 |
+ (message "Sourcing environment from `%s'... done." filename)) |
|
204 |
+ |
|
179 | 205 |
(defun cold-boot () |
180 | 206 |
"" |
181 | 207 |
(run-with-idle-timer 5 t 'garbage-collect) |
... | ... |
@@ -6,6 +6,7 @@ |
6 | 6 |
;; Version: 0.0.1 |
7 | 7 |
;; Keywords: json,navigator |
8 | 8 |
;; URL: https://fwoar.co |
9 |
+;; Package-Requires: (json-mode fwoar-functional-utils) |
|
9 | 10 |
|
10 | 11 |
;; This program is free software; you can redistribute it and/or modify |
11 | 12 |
;; it under the terms of the GNU General Public License as published by |
... | ... |
@@ -25,12 +26,13 @@ |
25 | 26 |
;; simple attempts to navigate json |
26 | 27 |
|
27 | 28 |
;;; Code: |
29 |
+(require 'fwoar-functional-utils) |
|
30 |
+(require 'json-mode) |
|
28 | 31 |
|
29 | 32 |
(defvar-local fwoar/json-nav--data nil) |
30 | 33 |
(defvar-local fwoar/json-nav--path nil) |
31 | 34 |
(defvar-local fwoar/json-nav--prev-buffer nil) |
32 | 35 |
(defvar-local fwoar/json-nav--start-buffer nil) |
33 |
-(require 'fwoar-functional-utils) |
|
34 | 36 |
|
35 | 37 |
(defun fwoar/browse-json-response (url) |
36 | 38 |
(interactive "Murl? ") |
... | ... |
@@ -53,10 +55,9 @@ |
53 | 55 |
(switch-to-buffer json))) |
54 | 56 |
|
55 | 57 |
(defun fwoar/json--ensure-data () |
56 |
- (unless fwoar/json-nav--data |
|
57 |
- (save-excursion |
|
58 |
- (goto-char (point-min)) |
|
59 |
- (setq-local fwoar/json-nav--data (json-parse-buffer :null-object nil)))) |
|
58 |
+ (save-excursion |
|
59 |
+ (goto-char (point-min)) |
|
60 |
+ (setq-local fwoar/json-nav--data (json-parse-buffer :null-object nil))) |
|
60 | 61 |
(values)) |
61 | 62 |
|
62 | 63 |
(defun fwoar/json-nav--pierce-vectors (fun it) |
... | ... |
@@ -4676,6 +4676,8 @@ |
4676 | 4676 |
<string>Default</string> |
4677 | 4677 |
<key>Disable Window Resizing</key> |
4678 | 4678 |
<true/> |
4679 |
+ <key>Enable Triggers in Interactive Apps</key> |
|
4680 |
+ <false/> |
|
4679 | 4681 |
<key>Flashing Bell</key> |
4680 | 4682 |
<false/> |
4681 | 4683 |
<key>Foreground Color</key> |
... | ... |
@@ -6356,7 +6358,7 @@ |
6356 | 6358 |
<key>findIgnoreCase_iTerm</key> |
6357 | 6359 |
<true/> |
6358 | 6360 |
<key>findMode_iTerm</key> |
6359 |
- <integer>4</integer> |
|
6361 |
+ <integer>0</integer> |
|
6360 | 6362 |
<key>findRegex_iTerm</key> |
6361 | 6363 |
<false/> |
6362 | 6364 |
<key>kCPKSelectionViewPreferredModeKey</key> |
6363 | 6365 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,152 @@ |
1 |
+# emacs files |
|
2 |
+*~ |
|
3 |
+*\# |
|
4 |
+.tramp_history |
|
5 |
+ |
|
6 |
+# vim cache files |
|
7 |
+*.swp |
|
8 |
+ |
|
9 |
+# auto generated files |
|
10 |
+*.logrt |
|
11 |
+ |
|
12 |
+/build |
|
13 |
+/build_* |
|
14 |
+/build-* |
|
15 |
+/tests/venv |
|
16 |
+ |
|
17 |
+# logs |
|
18 |
+*.log |
|
19 |
+*.stderr |
|
20 |
+*.stdout |
|
21 |
+ |
|
22 |
+/docs/build |
|
23 |
+/docs/publish |
|
24 |
+/docs/edit |
|
25 |
+/docs/website |
|
26 |
+/docs/venv |
|
27 |
+/docs/tools/venv |
|
28 |
+/docs/tools/translate/venv |
|
29 |
+/docs/tools/translate/output.md |
|
30 |
+/docs/en/single.md |
|
31 |
+/docs/ru/single.md |
|
32 |
+/docs/zh/single.md |
|
33 |
+/docs/ja/single.md |
|
34 |
+/docs/fa/single.md |
|
35 |
+/docs/en/development/cmake-in-clickhouse.md |
|
36 |
+ |
|
37 |
+# callgrind files |
|
38 |
+callgrind.out.* |
|
39 |
+ |
|
40 |
+# ignore kdevelop files |
|
41 |
+*.kdev4 |
|
42 |
+*.kdev_include_paths |
|
43 |
+ |
|
44 |
+# ignore sublime project files |
|
45 |
+*.sublime-* |
|
46 |
+ |
|
47 |
+# Qt Creator files |
|
48 |
+*.user |
|
49 |
+ |
|
50 |
+# ignore perf output |
|
51 |
+*/perf.data |
|
52 |
+ |
|
53 |
+# ignore build files |
|
54 |
+CMakeCache.txt |
|
55 |
+CMakeFiles |
|
56 |
+Makefile |
|
57 |
+cmake_install.cmake |
|
58 |
+CTestTestfile.cmake |
|
59 |
+*.a |
|
60 |
+*.o |
|
61 |
+cmake-build-* |
|
62 |
+ |
|
63 |
+# Python cache |
|
64 |
+*.pyc |
|
65 |
+__pycache__ |
|
66 |
+*.pytest_cache |
|
67 |
+ |
|
68 |
+test.cpp |
|
69 |
+CPackConfig.cmake |
|
70 |
+CPackSourceConfig.cmake |
|
71 |
+ |
|
72 |
+*-preprocessed.xml |
|
73 |
+ |
|
74 |
+core |
|
75 |
+!core/ |
|
76 |
+vgcore* |
|
77 |
+ |
|
78 |
+*.deb |
|
79 |
+*.build |
|
80 |
+*.upload |
|
81 |
+*.changes |
|
82 |
+build-stamp |
|
83 |
+configure-stamp |
|
84 |
+ |
|
85 |
+*.bin |
|
86 |
+*.mrk |
|
87 |
+*.mrk2 |
|
88 |
+*.mrk3 |
|
89 |
+ |
|
90 |
+.dupload.conf |
|
91 |
+ |
|
92 |
+# Netbeans project files |
|
93 |
+nbproject/* |
|
94 |
+ |
|
95 |
+# JetBrains project files |
|
96 |
+.idea |
|
97 |
+ |
|
98 |
+# Microsoft Visual Studio Code |
|
99 |
+.vscode |
|
100 |
+ |
|
101 |
+config-preprocessed.xml |
|
102 |
+ |
|
103 |
+# Protobuf |
|
104 |
+*.pb.cpp |
|
105 |
+*.pb.h |
|
106 |
+ |
|
107 |
+# Ignore symlink to private repository |
|
108 |
+/private |
|
109 |
+ |
|
110 |
+# Gulp dependencies used to minify website |
|
111 |
+node_modules |
|
112 |
+public |
|
113 |
+website/docs |
|
114 |
+website/presentations |
|
115 |
+website/package-lock.json |
|
116 |
+.DS_Store |
|
117 |
+*/.DS_Store |
|
118 |
+ |
|
119 |
+# cquery cache |
|
120 |
+/.cquery-cache |
|
121 |
+ |
|
122 |
+# ccls cache |
|
123 |
+/.ccls-cache |
|
124 |
+ |
|
125 |
+# clangd cache |
|
126 |
+/.clangd |
|
127 |
+/.cache |
|
128 |
+ |
|
129 |
+/compile_commands.json |
|
130 |
+ |
|
131 |
+# Toolchains |
|
132 |
+/cmake/toolchain/* |
|
133 |
+ |
|
134 |
+# ANTLR extension cache |
|
135 |
+.antlr |
|
136 |
+ |
|
137 |
+# ANTLR generated files |
|
138 |
+/src/Parsers/New/*.interp |
|
139 |
+/src/Parsers/New/*.tokens |
|
140 |
+/src/Parsers/New/ClickHouseParserBaseVisitor.* |
|
141 |
+ |
|
142 |
+# pytest-profiling |
|
143 |
+/prof |
|
144 |
+ |
|
145 |
+*.iml |
|
146 |
+ |
|
147 |
+# data store |
|
148 |
+/programs/server/data |
|
149 |
+/programs/server/metadata |
|
150 |
+/programs/server/store |
|
151 |
+ |
|
152 |
+* |