Emacs: Add book org-capture template and global keybinding
This commit is contained in:
		
							parent
							
								
									6c715bf945
								
							
						
					
					
						commit
						2003a72dec
					
				| @ -2366,10 +2366,10 @@ and there's no need for a middle-man when it's already been implemented. | |||||||
| 
 | 
 | ||||||
| (defun joe/capture-daily () | (defun joe/capture-daily () | ||||||
|   (concat |   (concat | ||||||
|    "* " "%^t" "\n" |    "* %^t\n" | ||||||
|    "** Schedule" "\n" |    "** Schedule\n" | ||||||
|    "** Notes" "\n" |    "** Notes\n" | ||||||
|    "** Resources" "\n")) |    "** Resources")) | ||||||
| (setq org-capture-templates | (setq org-capture-templates | ||||||
|       `( |       `( | ||||||
|         ("l" "Leetcode Solution" plain |         ("l" "Leetcode Solution" plain | ||||||
| @ -2377,12 +2377,15 @@ and there's no need for a middle-man when it's already been implemented. | |||||||
|          #'joe/capture-leetcode-template) |          #'joe/capture-leetcode-template) | ||||||
| 
 | 
 | ||||||
|         ("d" "Daily Entry" entry |         ("d" "Daily Entry" entry | ||||||
|          ;; A relative file name is interpreted based on |          (file "Daily.org") | ||||||
|          ;; `org-directory'. |  | ||||||
|          (file "~/Notes/Daily.org") |  | ||||||
|          #'joe/capture-daily) |          #'joe/capture-daily) | ||||||
|         )) | 
 | ||||||
|   #+end_src |         ("b" "New Book To Read" entry | ||||||
|  |          (file+headline "Books.org" "To Read") | ||||||
|  |          "** %^{Book Title}%^{AUTHOR}p" :prepend t))) | ||||||
|  | 
 | ||||||
|  | (define-key global-map (kbd "C-c c") #'org-capture) | ||||||
|  | #+end_src | ||||||
| *** org-babel | *** org-babel | ||||||
| #+begin_src emacs-lisp | #+begin_src emacs-lisp | ||||||
| (org-babel-do-load-languages | (org-babel-do-load-languages | ||||||
| @ -2442,7 +2445,6 @@ with the cursor you hit TAB and you complete the following; | |||||||
| #+begin_src emacs-lisp | #+begin_src emacs-lisp | ||||||
| (require 'org-kanban) | (require 'org-kanban) | ||||||
| #+end_src | #+end_src | ||||||
| ** Org-capture |  | ||||||
| ** Magit | ** Magit | ||||||
| 
 | 
 | ||||||
| The best git porcelain/client I've ever used. Also kill stray magit buffers left | The best git porcelain/client I've ever used. Also kill stray magit buffers left | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user