|
237 | 237 | ;; Turn annoying windows like *help* into popup windows that can be
|
238 | 238 | ;; closed with q or C-g!
|
239 | 239 | (use-package popwin
|
240 |
| - :init |
| 240 | + :config |
241 | 241 | ;; Hey, I like full side-by-side compile buffers, so leave 'em alone
|
242 | 242 | (delete '(compilation-mode :noselect t) popwin:special-display-config)
|
243 |
| - :config |
244 | 243 | (popwin-mode 1))
|
245 | 244 |
|
246 | 245 | ;; Simple REST client / HTTP explorer
|
|
274 | 273 | (add-hook 'prog-mode-hook 'eldoc-mode))
|
275 | 274 |
|
276 | 275 | ;; Enable semantic parsing where applicable
|
277 |
| -(use-package semantic |
278 |
| - :commands semantic-mode |
279 |
| - :init |
280 |
| - (add-hook 'prog-mode-hook 'semantic-mode)) |
| 276 | +;; (use-package semantic |
| 277 | +;; :commands semantic-mode |
| 278 | +;; :init |
| 279 | +;; (add-hook 'prog-mode-hook 'semantic-mode)) |
281 | 280 |
|
282 | 281 | ;; Highlight and auto-clean bad whitespace
|
283 | 282 | (use-package whitespace
|
|
341 | 340 | :config
|
342 | 341 | (global-yascroll-bar-mode 1))
|
343 | 342 |
|
| 343 | +(use-package compile |
| 344 | + :init |
| 345 | + ;; Shut up compile saves |
| 346 | + (setq compilation-ask-about-save nil) |
| 347 | + ;; Don't save *anything* |
| 348 | + (setq compilation-save-buffers-predicate '(lambda () nil)) |
| 349 | + :config |
| 350 | + ;; Add NodeJS error format |
| 351 | + (setq compilation-error-regexp-alist-alist |
| 352 | + ;; Tip: M-x re-builder to test this out |
| 353 | + (cons '(node "^[ ]+at \\(?:[^\(\n]+ \(\\)?\\([a-zA-Z\.0-9_/-]+\\):\\([0-9]+\\):\\([0-9]+\\)\)?$" |
| 354 | + 1 ;; file |
| 355 | + 2 ;; line |
| 356 | + 3 ;; column |
| 357 | + ) |
| 358 | + compilation-error-regexp-alist-alist)) |
| 359 | + (setq compilation-error-regexp-alist |
| 360 | + (cons 'node compilation-error-regexp-alist)) |
| 361 | + :bind |
| 362 | + (("C-c C-c" . compile) |
| 363 | + ("C-c C-r" . recompile))) |
| 364 | + |
| 365 | +;; TODO: look at Casey/work dotfiles to make compile better |
| 366 | +;; TODO: re-run last command http://stackoverflow.com/questions/275842/is-there-a-repeat-last-command-in-emacs |
| 367 | +;;(global-set-key (kbd "C-c C-c") 'compile) |
| 368 | +;;(global-set-key "\C-B" 'recompile) |
| 369 | +;;global-set-key "\C-x\C-c" 'switch-to-most-recent-compile-buffer) |
| 370 | + |
| 371 | + |
| 372 | + |
344 | 373 | ;; TODO: https://github.com/nschum/highlight-symbol.el
|
345 | 374 |
|
346 | 375 |
|
|
812 | 841 | (global-set-key (kbd "C-q") 'next-error)
|
813 | 842 | (global-set-key (kbd "C-S-q") 'previous-error)
|
814 | 843 |
|
815 |
| -;; TODO: look at Casey/work dotfiles to make compile better |
816 |
| -;; TODO: re-run last command http://stackoverflow.com/questions/275842/is-there-a-repeat-last-command-in-emacs |
817 |
| -(global-set-key (kbd "C-c C-c") 'compile) |
818 |
| -;;(global-set-key "\C-B" 'recompile) |
819 |
| -;;global-set-key "\C-x\C-c" 'switch-to-most-recent-compile-buffer) |
820 |
| - |
821 | 844 | ;; TODO: the keypad insert key is <help> (like F1)! Nice!
|
822 | 845 |
|
823 | 846 | (global-set-key "\C-v" 'yank)
|
|
0 commit comments