moved conf files to seperate dir

This commit is contained in:
ndwarshuis 2018-12-11 19:33:59 -05:00
parent 470b491888
commit e4414d0031
4 changed files with 2601 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,6 +1,6 @@
/* /*
!.gitignore !.gitignore
!conf.org !conf
!conf/*
!README.org !README.org
conf.el
!init.el !init.el

2580
conf/main.el Normal file

File diff suppressed because it is too large Load Diff

View File

@ -363,14 +363,14 @@ filesystem and is a usb drive."
(switch-to-buffer (other-buffer (current-buffer) 1))) (switch-to-buffer (other-buffer (current-buffer) 1)))
(defun nd/config-reload () (defun nd/config-reload ()
"Reloads ~/.emacs.d/conf.org at runtime." "Reloads main configuration file at runtime."
(interactive) (interactive)
(org-babel-load-file (expand-file-name "~/.emacs.d/conf.org"))) (org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org")))
(defun nd/config-visit () (defun nd/config-visit ()
"Opens the main conf.org file (the one that really matters)." "Opens the main conf.org file (the one that really matters)."
(interactive) (interactive)
(find-file "~/.emacs.d/conf.org")) (find-file "~/.emacs.d/conf/main.org"))
(defun nd/kill-current-buffer () (defun nd/kill-current-buffer ()
"Kill the current buffer." "Kill the current buffer."
@ -1211,6 +1211,19 @@ Prevent accidental refiling under tasks with done keywords
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-refile-target-verify-function (setq org-refile-target-verify-function
(lambda () (not (member (nth 2 (org-heading-components)) org-done-keywords)))) (lambda () (not (member (nth 2 (org-heading-components)) org-done-keywords))))
;; TODO this no work, although does work if var is global
;; redfining the targets works for now
(add-hook 'org-agenda-mode-hook
(lambda ()
(when (equal (buffer-name) "*Org Agenda(A)*")
(setq-local org-refile-targets
'(("~/Org/journal/goals.org" :maxlevel . 9))))))
;; (lambda () (when (org-entry-get nil "GOAL") t))))))
;; (setq org-refile-targets '((nil :maxlevel . 9)
;; ("~/Org/reference/idea.org" :maxlevel . 9)
;; ("~/Org/journal/goals.org" :maxlevel . 9)
;; (org-agenda-files :maxlevel . 9))
#+END_SRC #+END_SRC
*** clocking *** clocking
Clocking is still new and experimental (I'm not a ninja like Bernt yet). I mostly use clocking now as a way to make clean breaks between tasks (eg to discourage "mixing" tasks which is a slippery multitasking slope). I bound =F4= to =org-clock-goto= as an easy way to find my current/last clocked task in any mode (see keybindigs). Clocking is still new and experimental (I'm not a ninja like Bernt yet). I mostly use clocking now as a way to make clean breaks between tasks (eg to discourage "mixing" tasks which is a slippery multitasking slope). I bound =F4= to =org-clock-goto= as an easy way to find my current/last clocked task in any mode (see keybindigs).

View File

@ -7,7 +7,7 @@
(package-refresh-contents) (package-refresh-contents)
(package-install 'use-package)) (package-install 'use-package))
(org-babel-load-file (expand-file-name "~/.emacs.d/conf.org")) (org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org"))
;; (custom-set-variables ;; (custom-set-variables
;; ;; custom-set-variables was added by Custom. ;; ;; custom-set-variables was added by Custom.
@ -21,10 +21,11 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
(quote (quote
(company-math company-auctex dired-du helm-swoop org-ref helm-bibtex evil-replace-with-register evil-commentary flyspell-correct-helm helm-flyspell evil-surround markdown-mode polymode csv-mode company-ghc calf-org evil-magit magit yasnippet-snippets flycheck rainbow-delimiters-mode helm evil-collection haskell-mode fill-column-indicator gtklp delight browse-kill-ring evil-org-agenda evil-org evil calfw calfw-org yaml-mode which-key use-package systemd sudo-edit spaceline rainbow-mode rainbow-delimiters pkgbuild-mode pdf-tools org-bullets lua-mode ess elpy diff-hl beacon ace-window)))) (intero ebib company-math company-auctex dired-du helm-swoop org-ref helm-bibtex evil-replace-with-register evil-commentary flyspell-correct-helm helm-flyspell evil-surround markdown-mode polymode csv-mode calf-org evil-magit magit yasnippet-snippets flycheck rainbow-delimiters-mode helm evil-collection haskell-mode fill-column-indicator gtklp delight browse-kill-ring evil-org-agenda evil-org evil calfw calfw-org yaml-mode which-key use-package systemd sudo-edit spaceline rainbow-mode rainbow-delimiters pkgbuild-mode pdf-tools org-bullets lua-mode ess elpy diff-hl beacon ace-window))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5" :height 1.0 :box nil))))) '(aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5" :height 1.0 :box nil)))))
(put 'upcase-region 'disabled nil)