Browse code
feat(emacs): fwoar-json-navigator, cleanup
Showing 2 changed files
... | ... |
@@ -138,6 +138,10 @@ |
138 | 138 |
(fwoar-pastebin-web-url-pattern (when (file-exists-p "~/.pastebin-name") |
139 | 139 |
(cadr (read-sexps-in-file "~/.pastebin-name"))))) |
140 | 140 |
|
141 |
+(use-package fwoar-json-navigator |
|
142 |
+ :init (require 'fwoar-json-navigator) |
|
143 |
+ :ensure nil) |
|
144 |
+ |
|
141 | 145 |
(defun fwoar/package-configuration (package) |
142 | 146 |
(fwoar/setup-load-path) |
143 | 147 |
(let* ((local-configs) |
... | ... |
@@ -265,7 +269,7 @@ |
265 | 269 |
|
266 | 270 |
;; slime depends on fwoar-git-repo |
267 | 271 |
(load-package-configuration 'slime) |
268 |
-(comment (load-package-configuration 'cider)) |
|
272 |
+;; (load-package-configuration 'cider) |
|
269 | 273 |
|
270 | 274 |
(global-company-mode 1) |
271 | 275 |
|
... | ... |
@@ -84,15 +84,17 @@ |
84 | 84 |
|
85 | 85 |
(defun find-use-clause (current-form) |
86 | 86 |
(when current-form |
87 |
- (destructuring-bind (discriminator . packages) current-form |
|
88 |
- (case discriminator |
|
87 |
+ (cl-destructuring-bind (discriminator . packages) current-form |
|
88 |
+ (cl-case discriminator |
|
89 | 89 |
(:use (remove-if (op (or (eql :cl _))) |
90 | 90 |
(cdr current-form))) |
91 | 91 |
(defpackage (find-use-clause |
92 | 92 |
(find-if (lambda (f) |
93 | 93 |
(and (listp f) |
94 | 94 |
(eql (car f) :use))) |
95 |
- '(defpackage :tracking-sim (:use :cl :alexandria :serapeum) (:export))))))))) |
|
95 |
+ '(defpackage :tracking-sim |
|
96 |
+ (:use :cl :alexandria :serapeum) |
|
97 |
+ (:export))))))))) |
|
96 | 98 |
|
97 | 99 |
(defun load-package-uses () |
98 | 100 |
(interactive) |
... | ... |
@@ -149,25 +151,25 @@ Examples: |
149 | 151 |
:config |
150 | 152 |
|
151 | 153 |
(defslimefun get-passwd (id prompt) |
152 |
- (let ((val (assoc id passwords))) |
|
153 |
- (cdr |
|
154 |
- (if val val |
|
155 |
- (car (push (cons id (read-passwd prompt)) |
|
156 |
- passwords)))))) |
|
154 |
+ (let ((val (assoc id passwords))) |
|
155 |
+ (cdr |
|
156 |
+ (if val val |
|
157 |
+ (car (push (cons id (read-passwd prompt)) |
|
158 |
+ passwords)))))) |
|
157 | 159 |
(message "%s" load-path) |
158 | 160 |
(when (or (eq system-type 'gnu/linux) |
159 | 161 |
(eq system-type 'darwin)) |
160 | 162 |
(define-lisp-implementations |
161 |
- (abcl ("abcl")) |
|
162 |
- (lw ("lw")) |
|
163 |
- (ccl ("ccl")) |
|
164 |
- (clisp ("clisp")) |
|
165 |
- (cmucl ("cmucl" "-quiet")) |
|
166 |
- (ecl ("ecl")) |
|
167 |
- ;;(mkcl ("mkcl")) |
|
168 |
- ;;(xcl ("xcl")) |
|
169 |
- (sbcl ("sbcl" "--dynamic-space-size" "8192")) |
|
170 |
- )) |
|
163 |
+ (abcl ("abcl")) |
|
164 |
+ (lw ("lw")) |
|
165 |
+ (ccl ("ccl")) |
|
166 |
+ (clisp ("clisp")) |
|
167 |
+ (cmucl ("cmucl" "-quiet")) |
|
168 |
+ (ecl ("ecl")) |
|
169 |
+ ;;(mkcl ("mkcl")) |
|
170 |
+ ;;(xcl ("xcl")) |
|
171 |
+ (sbcl ("sbcl" "--dynamic-space-size" "8192")) |
|
172 |
+ )) |
|
171 | 173 |
|
172 | 174 |
(global-set-key (kbd "C-c x") 'slime-export-symbol-at-point) |
173 | 175 |
|
... | ... |
@@ -177,7 +179,7 @@ Examples: |
177 | 179 |
(concat "file://" common-lisp-hyperspec-root))) |
178 | 180 |
|
179 | 181 |
;; Replace "sbcl" with the path to your implementation |
180 |
- (setq inferior-lisp-program "~/sbcl/bin/sbcl") |
|
182 |
+ (setq inferior-lisp-program "~/.nix-profile/bin/sbcl") |
|
181 | 183 |
|
182 | 184 |
(add-hook 'lisp-mode-hook 'setup-lisp-mode) |
183 | 185 |
(add-hook 'emacs-lisp-mode-hook 'setup-lisp-mode) |