(lambda () (setq gc-cons-threshold normal-gc-cons-threshold))))
#+end_src
+* Loading the =modus-vivendi= theme
+
+#+begin_src emacs-lisp
+ (load-theme 'modus-vivendi)
+ (modus-themes-load-vivendi)
+#+end_src
+
* Package archives
#+begin_src emacs-lisp
(setq native-comp-async-report-warnings-errors 'silent)
#+end_src
-* Loading the =modus-vivendi= theme
-
-#+begin_src emacs-lisp
- (load-theme 'modus-vivendi)
- (modus-themes-load-vivendi)
-#+end_src
-
* No littering!
#+begin_src emacs-lisp
:exclude ".*"
:include ("index.org")
:publishing-function org-html-publish-to-html
- :html-head "<link rel=\"stylesheet\" href=\"/style.css\" type=\"text/css\"/>"
+ :html-head ,esy/website-html-header
:html-postamble ,(f-read-text
"~/checkouts/eshelyaron.com/org/html_postamble.html"))
"Template for the index page of my website")
"History list for 'esy/org-capture-to-project-heading'.")
(require 'savehist)
- (setq savehist-additional-variables '(esy/org-capture-to-project-heading-history-list))
+ (setq savehist-additional-variables
+ '(esy/org-capture-to-project-heading-history-list))
(defun esy/org-capture-to-project-heading ()
"Prompt for a projects and capture a related task."
(let* ((projects
(org-map-entries `(lambda () (nth 4 (org-heading-components)))
"+project+LEVEL=2" '(esy/inbox-path)))
- (choice (completing-read "Project: " projects nil t nil 'esy/org-capture-to-project-heading-history-list))
- (m (org-find-olp (cons (org-capture-expand-file esy/inbox-path) (list "Projects" choice)))))
+ (choice (completing-read "Project: "
+ projects
+ nil
+ t
+ nil
+ 'esy/org-capture-to-project-heading-history-list))
+ (m (org-find-olp (cons
+ (org-capture-expand-file esy/inbox-path)
+ (list "Projects" choice)))))
(set-buffer (marker-buffer m))
(org-capture-put-target-region-and-position)
(widen)
"\"")
(list esy/inbox-path)))
(choice (car projects))
- (m (org-find-olp (cons (org-capture-expand-file esy/inbox-path) (list "Projects" choice)))))
+ (m (org-find-olp (cons
+ (org-capture-expand-file esy/inbox-path)
+ (list "Projects" choice)))))
(set-buffer (marker-buffer m))
(org-capture-put-target-region-and-position)
(widen)
(setq org-capture-templates '(("t" "Todo [inbox]" entry
(file+headline esy/inbox-path "Tasks")
"** TODO %^{Task} %^g
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CapturedAs: Inbox Task
- :END:
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CapturedAs: Inbox Task
+ :END:
+ "
:prepend t
:empty-lines 1
:immediate-finish t)
("n" "New Project" entry
(file+headline esy/inbox-path "Projects")
"** %^{Name} %^g
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CapturedAs: New Project
- :SCM: file:%(project-prompt-project-dir)
- :END:
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CapturedAs: New Project
+ :SCM: file:%(project-prompt-project-dir)
+ :END:
+ "
:prepend t
:empty-lines 1
:immediate-finish t)
("c" "New Calendar Event" entry
(file+headline esy/inbox-path "Calendar")
"** %^{Title} %^g
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CapturedAs: Calendar Event
- :END:
- %(format-time-string \"<%Y-%m-%d %H:%M\" (org-read-date t t))-%(format-time-string \"%H:%M>\" (org-read-date t t))
- %i
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CapturedAs: Calendar Event
+ :END:
+ %(format-time-string \"<%Y-%m-%d %H:%M\" (org-read-date t t))-%(format-time-string \"%H:%M>\" (org-read-date t t))
+ %i
+ "
:prepend t
:empty-lines 1
:immediate-finish t)
("p" "New Project Task" entry
- (file+function esy/inbox-path esy/org-capture-to-project-heading)
+ (file+function esy/inbox-path
+ esy/org-capture-to-project-heading)
"*** TODO %?
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CapturedAs: Project Task
- :END:
- %i
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CapturedAs: Project Task
+ :END:
+ %i
+ "
:prepend t
:empty-lines 1)
("Q" "Quick Project Task" entry
- (file+function esy/inbox-path esy/org-capture-to-project-heading)
+ (file+function esy/inbox-path
+ esy/org-capture-to-project-heading)
"*** TODO %^{Task}
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CaptuerdAs: Quick Project Task
- :END:
- %i
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CaptuerdAs: Quick Project Task
+ :END:
+ %i
+ "
:prepend t
:empty-lines 1
:immediate-finish t)
("P" "Current Project Task" entry
- (file+function esy/inbox-path esy/org-capture-to-current-project)
+ (file+function esy/inbox-path
+ esy/org-capture-to-current-project)
"*** TODO %^{Task}
- :PROPERTIES:
- :CreatedAt: %t
- :CapturedAt: %a
- :CaptuerdAs: Current Project Task
- :END:
- %i
- "
+ :PROPERTIES:
+ :CreatedAt: %t
+ :CapturedAt: %a
+ :CaptuerdAs: Current Project Task
+ :END:
+ %i
+ "
:prepend t
:empty-lines 1
:immediate-finish t)))
-(setq org-capture-templates-contexts
- '(("P" (list project-current))))
+ (setq org-capture-templates-contexts
+ '(("P" (list project-current))))
#+end_src
** Unset =org-mode= binding of =C-,= to =org-cycle-agenda-files= :kbd: