Close compilation buffer and update paths
This commit is contained in:
parent
95ad5dda2d
commit
262d05c9f5
2
+org.el
2
+org.el
|
@ -14,6 +14,8 @@
|
|||
(set-company-backend! 'org-mode nil)
|
||||
;; Turn off line numbers
|
||||
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||
;; Add Notes to agenda
|
||||
(setq org-agenda-files '("~/Notes"))
|
||||
;; Tailor Org super agenda
|
||||
(use-package! org-super-agenda
|
||||
:after org-agenda
|
||||
|
|
18
config.el
18
config.el
|
@ -5,7 +5,7 @@
|
|||
;; Load appearance configuration
|
||||
(load! "+ui")
|
||||
;; Set projects directories
|
||||
(setq projectile-project-search-path '("~/Sync/Projects"))
|
||||
(setq projectile-project-search-path '("~/Projects"))
|
||||
; Auto cleanup recentf
|
||||
(setq recentf-auto-cleanup '300)
|
||||
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
|
||||
|
@ -28,8 +28,20 @@
|
|||
(revert-buffer :ignore-auto :noconfirm))
|
||||
;; Select target in Makefile compilation as default
|
||||
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
|
||||
;; Choose docsets for Python
|
||||
;; Set docsets for each language
|
||||
(after! python
|
||||
(set-docsets! 'python-mode "Python 3" "NumPy" "SciPy" "Pandas" "SQLAlchemy"))
|
||||
(set-docsets! 'python-mode "Python 3" "NumPy" "Pandas"))
|
||||
(after! c++
|
||||
(set-docsets! 'c++-mode "C++"))
|
||||
;; Align columns in CSV mode
|
||||
(add-hook 'csv-mode-hook 'csv-align-mode)
|
||||
;; Close compilation buffer if successfull(setq compilation-finish-functions
|
||||
(setq compilation-finish-functions
|
||||
(lambda (buf str)
|
||||
(if (null (string-match ".*exited abnormally.*" str))
|
||||
;;no errors, make the compilation window go away in a few seconds
|
||||
(progn
|
||||
(run-at-time
|
||||
"0.5 sec" nil 'delete-windows-on
|
||||
(get-buffer-create "*compilation*"))
|
||||
(message "No Compilation Errors!")))))
|
||||
|
|
Loading…
Reference in New Issue