diff --git a/+org.el b/+org.el index 9313845..06ba954 100644 --- a/+org.el +++ b/+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 diff --git a/config.el b/config.el index 398e518..9df807a 100644 --- a/config.el +++ b/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!")))))