commit 7597bd97e72999c6a017f72c4bcec49ed92de3f5
parent 837b806677a07d37cb9922c0344b9912a6cb9dda
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Tue, 7 May 2024 02:37:50 -0500
Added emacs
Diffstat:
2 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/.config/emacs/.gitignore b/.config/emacs/.gitignore
@@ -0,0 +1,3 @@
+/elpa/
+/.org-id-locations
+/persist/
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
@@ -0,0 +1,52 @@
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))
+(package-initialize)
+
+
+(global-set-key (kbd "C-c l") #'org-store-link)
+(global-set-key (kbd "C-c a") #'org-agenda)
+(global-set-key (kbd "C-c c") #'org-capture)
+
+(require 'org-drill)
+(setq org-default-notes-file (concat org-directory "/notes.org"))
+(setq org-capture-templates
+ `(("a"
+ "Task"
+ entry
+ (file+headline "tasks" "Tasks")
+ "* TODO %?\n %u\n %a")
+ ("e"
+ "Drill"
+ entry
+ (file+headline "" "Emacs")
+ ,(concat "** Item %^{mode}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:DATE_ADDED: %u\n:END:\n\n*** Key Sequence\n%^{key_sequence}\n\n*** Description\n%^{description}")
+ :empty-lines 1
+ :immediate-finish t)
+ ("l" "Linux")
+ ("lb"
+ "Linux commands"
+ entry
+ (file+headline "" "Linux")
+ ,(concat "** %^{topic}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:END:\n\n%^{question}\n\n*** Answer\n%^{answer}")
+ :empty-lines 1
+ :immediate-finish t)
+ ("lf"
+ "Linux fod"
+ entry
+ (file+headline "" "Linux")
+ ,(concat "** %^{topic}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:END:\n\n*** flag\n%^{flag}\n\n*** option\n%^{option}\n\n*** description\n%?")
+ :empty-lines 1)
+ ("j"
+ "journal Entry"
+ entry
+ (file+datetree "journal.org")
+ "* %?"
+ :empty-lines 1)
+ ))
+
+(setq telega-directory (expand-file-name "~/.local/share/telega")
+ telega-database-dir (expand-file-name "~/.local/share/telega")
+ telega-cache-dir (expand-file-name "~/.cache/telega/cache")
+ telega-temp-dir (expand-file-name "~/.cache/telega/temp")
+)