moved conf files to seperate dir
This commit is contained in:
parent
470b491888
commit
e4414d0031
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
!.gitignore
|
||||
!conf.org
|
||||
!conf
|
||||
!conf/*
|
||||
!README.org
|
||||
conf.el
|
||||
!init.el
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -363,14 +363,14 @@ filesystem and is a usb drive."
|
|||
(switch-to-buffer (other-buffer (current-buffer) 1)))
|
||||
|
||||
(defun nd/config-reload ()
|
||||
"Reloads ~/.emacs.d/conf.org at runtime."
|
||||
"Reloads main configuration file at runtime."
|
||||
(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 ()
|
||||
"Opens the main conf.org file (the one that really matters)."
|
||||
(interactive)
|
||||
(find-file "~/.emacs.d/conf.org"))
|
||||
(find-file "~/.emacs.d/conf/main.org"))
|
||||
|
||||
(defun nd/kill-current-buffer ()
|
||||
"Kill the current buffer."
|
||||
|
@ -1211,6 +1211,19 @@ Prevent accidental refiling under tasks with done keywords
|
|||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-refile-target-verify-function
|
||||
(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
|
||||
*** 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).
|
5
init.el
5
init.el
|
@ -7,7 +7,7 @@
|
|||
(package-refresh-contents)
|
||||
(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 was added by Custom.
|
||||
|
@ -21,10 +21,11 @@
|
|||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
(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 was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; 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)))))
|
||||
(put 'upcase-region 'disabled nil)
|
||||
|
|
Loading…
Reference in New Issue