summaryrefslogtreecommitdiff
path: root/emacs_init
diff options
context:
space:
mode:
authoryaideltg <github.j9jab@aleeas.com>2024-01-02 17:47:19 +0100
committeryaideltg <github.j9jab@aleeas.com>2024-01-02 17:47:19 +0100
commitc0b49c9a8504e750c6d81c653ce89daf48fdfde5 (patch)
tree7370dda463474285b11844778691cf9b438e1e03 /emacs_init
parente564c7d19d3c7e46ef77b095745b9b7c2fc98353 (diff)
downloadconfiguration files-c0b49c9a8504e750c6d81c653ce89daf48fdfde5.tar.gz
configuration files-c0b49c9a8504e750c6d81c653ce89daf48fdfde5.tar.bz2
configuration files-c0b49c9a8504e750c6d81c653ce89daf48fdfde5.zip
Some updates
Diffstat (limited to 'emacs_init')
-rw-r--r--emacs_init/dot_emacs.org313
1 files changed, 161 insertions, 152 deletions
diff --git a/emacs_init/dot_emacs.org b/emacs_init/dot_emacs.org
index 091aeb6..8325355 100644
--- a/emacs_init/dot_emacs.org
+++ b/emacs_init/dot_emacs.org
@@ -696,6 +696,7 @@ This solution is not es elegant as the use of Gnus and Notmuch, but certainly wi
* Spelling
#+begin_src emacs-lisp
+ (setq ispell-program-name "aspell")
(require 'ispell)
#+end_src
* Python
@@ -859,164 +860,166 @@ The =org-agenda-files= configuration has been written in the section [[*Adding _
because it uses [[*Denote][Denote's]] tags in the file name to detect the project files and add them to the list.
#+begin_src emacs-lisp
- (use-package org
- :ensure t
- :hook
- (org-mode . flyspell-mode)
- (org-mode . visual-line-mode)
- (org-mode . org-indent-mode)
- :config
-
- ;; (setq org-adapt-indentation nil) ;; set the identation method in ORG mode
-
- (setq org-clock-persist 'history) ;; Clocking projects time settings to save clocking history throughout sessions
- (org-clock-persistence-insinuate)
- (setq org-clock-idle-time 10)
-
- (setq org-clock-out-remove-zero-time-clocks t) ;; Sometimes I change tasks I'm clocking quickly - this removes clocked tasks with 0:00 duration
- (setq calendar-week-start-day 1)
-
- ;;
- ;; Tasks and Todos
- (setq org-todo-keywords
- '((sequence "TODO(t)" "NEXT(n)" "WORKING(w)" "DELEGATED(g)" "|" "DONE(d)" "CANCELLED(x)")
- (sequence "COMPUTE(c)" "COMPUTING(p)" "|" "FINISHED(f)" "UNFINISHED(u)")))
- (setq org-todo-keyword-faces
- (quote (("TODO" :background "IndianRed1" :foreground "black" :weight bold)
- ("NEXT" :background "sky blue" :foreground "black" :weight bold)
- ("WORKING" :background "lemon chiffon" :foreground "black" :weight bold)
- ("COMPUTING" :background "lavender" :foreground "black" :weight bold)
- ("DONE" :background "DarkOliveGreen2" :foreground "black" :weight bold)
- ("CANCELLED" :background "DarkOliveGreen2" :foreground "black" :weight bold)
- ("DELEGATED" :background "aquamarine2" :foreground "black" :weight bold))))
- (setq org-tag-alist
- '(("@pyrene" . ?p) ("@curta" . ?c) ("@irene" . ?i) ("@project" . ?j) ("@someday" . ?s)))
-
- ;;
- ;; TODO states trigers
- (setq org-todo-state-tags-triggers
- (quote ((done ("@pyrene") ("@curta") ("@irene") ("@project") ("@someday")))))
-
- ;;
- ;; Capture
- (setq org-directory "/media/Datos/notes/")
- (setq org-default-notes-file (concat org-directory organizer-file))
- (setq org-health-tracking-file (concat org-directory "20230815T112721--health-tracking__health.org"))
- (global-set-key (kbd "C-c c") 'org-capture) ;; use C-c c to start capture mode
-
- ;; capture templates for: TODO tasks, Notes, appointments, meetings
- (setq org-templates-location-var (concat org-directory organizer-file))
- (setq org-capture-templates
- '(("t" "Todo" entry (file+headline org-templates-location-var "Inbox")
- "* TODO %? \nCaptured on %U")
- ("h" "Health Tracking" entry (file+headline org-health-tracking-file "Daily data")
- "* %t \n:PROPERTIES:\n:barras: %?\n:pararelas: \n:planchas: \n:abdominales: \n:dificultad: \n:ánimo: \n:tiempo: \n:sueño: \n:ayuno: \n:caminar: \n:END:")
- ("n" "Read later / take a note" entry (file+headline org-templates-location-var "Inbox")
- "* Note from %a\nCaptured on: %U\n\n%?*Highlighted region*: %i\n\n")))
-
- ;; Refile
- ;; Targets include this file and any file contributing to the agenda - up to 9 levels deep
- ;; C-c C-w for refile
- (setq org-refile-targets (quote ((nil :maxlevel . 3)
- (org-agenda-files :maxlevel . 3))))
- ;;
- ;; Agenda customization
- ;;
- (global-set-key (kbd "C-c a") 'org-agenda)
- ;;
- ;; Format of the columns in the agenda view
- (setq org-columns-default-format-for-agenda "%65item(Task) %Effort(Effort){:} %clocksum_t(Today) %clocksum(Total)")
- ;; Format the habits tracker in the agenda buffer
- (setq org-habit-following-days 1)
- (setq org-habit-graph-column 80)
-
-
- (setq org-agenda-custom-commands
- '(("x" "My Agenda"
- ((agenda "" ((org-agenda-overriding-header "Today's Schedule:")
- (org-agenda-span 'day)
- (org-agenda-ndays 1)
- (org-agenda-start-on-weekday nil)
- (org-agenda-start-day "+0d")
- (org-agenda-sorting-strategy
- (quote
- (time-up deadline-down priority-down)))))
- (tags-todo "-@project/+WORKING"
- ((org-agenda-overriding-header "Tasks in progress")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))))
- (tags-todo "-@project/+NEXT"
- ((org-agenda-overriding-header "Next tasks")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))
- (org-agenda-max-entries 5)))
- (tags-todo "-@project/+TODO"
- ((org-agenda-overriding-header "TODOs")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))
- (org-agenda-max-entries 5)))
- ;; (agenda ""
- ;; ((org-agenda-overriding-header "The Week in a Glance:")
- ;; (org-agenda-sorting-strategy
- ;; (quote
- ;; (time-up deadline-down priority-down)))))
- (tags "+@capture-@excludeFromAgenda"
- ((org-agenda-overriding-header "Items to refile")
- ;;(org-tags-match-list-sublevels nil)
- (org-agenda-sorting-strategy
- (quote
- (priority-down time-down)))))
- (org-agenda-list-stuck-projects)
- (tags "CLOSED<=\"<-1m>\""
- ((org-agenda-overriding-header "Items to archive (older than a month)")
- (org-agenda-span
- (quote month))))))
- ("c" "Computations"
- ((tags-todo "TODO=\"COMPUTING\"+@curta"
- ((org-agenda-overriding-header "Computations Curta")
+ (use-package org
+ :ensure t
+ :hook
+ (org-mode . flyspell-mode)
+ (org-mode . visual-line-mode)
+ (org-mode . org-indent-mode)
+ :config
+
+ ;; (setq org-adapt-indentation nil) ;; set the identation method in ORG mode
+
+ (setq org-clock-persist 'history) ;; Clocking projects time settings to save clocking history throughout sessions
+ (org-clock-persistence-insinuate)
+ (setq org-clock-idle-time 10)
+
+ (setq org-clock-out-remove-zero-time-clocks t) ;; Sometimes I change tasks I'm clocking quickly - this removes clocked tasks with 0:00 duration
+ (setq calendar-week-start-day 1)
+
+ ;;
+ ;; Tasks and Todos
+ (setq org-todo-keywords
+ '((sequence "TODO(t)" "NEXT(n)" "WORKING(w)" "DELEGATED(g)" "|" "DONE(d)" "CANCELED(x)")
+ (sequence "COMPUTE(c)" "COMPUTING(p)" "|" "FINISHED(f)" "UNFINISHED(u)")))
+ (setq org-todo-keyword-faces
+ (quote (("TODO" :background "IndianRed1" :foreground "black" :weight bold)
+ ("NEXT" :background "sky blue" :foreground "black" :weight bold)
+ ("WORKING" :background "lemon chiffon" :foreground "black" :weight bold)
+ ("COMPUTING" :background "lavender" :foreground "black" :weight bold)
+ ("DONE" :background "DarkOliveGreen2" :foreground "black" :weight bold)
+ ("CANCELED" :background "DarkOliveGreen2" :foreground "black" :weight bold)
+ ("DELEGATED" :background "aquamarine2" :foreground "black" :weight bold))))
+ (setq org-tag-alist
+ '(("@project" . ?p) ("@someday" . ?s) ("@pyrene" . ?y) ("@curta" . ?c) ("@irene" . ?i)))
+
+ ;;
+ ;; TODO states trigers
+ (setq org-todo-state-tags-triggers
+ (quote ((done ("@pyrene") ("@curta") ("@irene") ("@project") ("@someday")))))
+
+ ;;
+ ;; Capture
+ (setq org-directory "/media/Datos/notes/")
+ (setq org-default-notes-file (concat org-directory organizer-file))
+ (setq org-health-tracking-file (concat org-directory "20230815T112721--health-tracking__health.org"))
+ (global-set-key (kbd "C-c c") 'org-capture) ;; use C-c c to start capture mode
+
+ ;; capture templates for: TODO tasks, Notes, appointments, meetings
+ (setq org-templates-location-var (concat org-directory organizer-file))
+ (setq org-capture-templates
+ '(("t" "Todo" entry (file+headline org-templates-location-var "Inbox")
+ "* TODO %? \nCaptured on %U")
+ ("h" "Health Tracking" entry (file+headline org-health-tracking-file "Daily data")
+ "* %t \n:PROPERTIES:\n:barras: %?\n:pararelas: \n:planchas: \n:abdominales: \n:dificultad: \n:ánimo: \n:tiempo: \n:sueño: \n:ayuno: \n:caminar: \n:END:")
+ ("n" "Read later / take a note" entry (file+headline org-templates-location-var "Inbox")
+ "* Note from %a\nCaptured on: %U\n\n*Highlighted region*: %i\n\n%?")
+ ("c" "Coding" entry (file+headline org-templates-location-var "Inbox")
+ "* TODO %? \nCaptured on %U\n*File*: [[file+emacs:%F]]\n*Highlighted region*:\n#+begin_src\n%i\n#+end_src\n\n")))
+
+ ;; Refile
+ ;; Targets include this file and any file contributing to the agenda - up to 9 levels deep
+ ;; C-c C-w for refile
+ (setq org-refile-targets (quote ((nil :maxlevel . 3)
+ (org-agenda-files :maxlevel . 3))))
+ ;;
+ ;; Agenda customization
+ ;;
+ (global-set-key (kbd "C-c a") 'org-agenda)
+ ;;
+ ;; Format of the columns in the agenda view
+ (setq org-columns-default-format-for-agenda "%65item(Task) %Effort(Effort){:} %clocksum_t(Today) %clocksum(Total)")
+ ;; Format the habits tracker in the agenda buffer
+ (setq org-habit-following-days 1)
+ (setq org-habit-graph-column 80)
+
+
+ (setq org-agenda-custom-commands
+ '(("x" "My Agenda"
+ ((agenda "" ((org-agenda-overriding-header "Today's Schedule:")
+ (org-agenda-span 'day)
+ (org-agenda-ndays 1)
+ (org-agenda-start-on-weekday nil)
+ (org-agenda-start-day "+0d")
+ (org-agenda-sorting-strategy
+ (quote
+ (time-up deadline-down priority-down)))))
+ (tags-todo "-@project/+WORKING"
+ ((org-agenda-overriding-header "Tasks in progress")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))))
+ (tags-todo "-@project/+NEXT"
+ ((org-agenda-overriding-header "Next tasks")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))
+ (org-agenda-max-entries 5)))
+ (tags-todo "-@project/+TODO"
+ ((org-agenda-overriding-header "TODOs")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))
+ (org-agenda-max-entries 5)))
+ ;; (agenda ""
+ ;; ((org-agenda-overriding-header "The Week in a Glance:")
+ ;; (org-agenda-sorting-strategy
+ ;; (quote
+ ;; (time-up deadline-down priority-down)))))
+ (tags "+@capture-@excludeFromAgenda"
+ ((org-agenda-overriding-header "Items to refile")
+ ;;(org-tags-match-list-sublevels nil)
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down time-down)))))
+ (org-agenda-list-stuck-projects)
+ (tags "CLOSED<=\"<-1m>\""
+ ((org-agenda-overriding-header "Items to archive (older than a month)")
+ (org-agenda-span
+ (quote month))))))
+ ("c" "Computations"
+ ((tags-todo "TODO=\"COMPUTING\"+@curta"
+ ((org-agenda-overriding-header "Computations Curta")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))))
+ (tags-todo "TODO=\"COMPUTING\"+@pyrene"
+ ((org-agenda-overriding-header "Computations Pyrene")
(org-agenda-sorting-strategy
(quote
(priority-down deadline-down effort-down)))))
- (tags-todo "TODO=\"COMPUTING\"+@pyrene"
- ((org-agenda-overriding-header "Computations Pyrene")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))))
- (tags-todo "TODO=\"COMPUTING\"+@irene"
- ((org-agenda-overriding-header "Computations TGCC")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))))
- ))
- ("p" "Projects"
- ((tags-todo "+@project/-DELEGATED-DONE-CANCELLED"
- ((org-agenda-overriding-header "Working on:")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))))
- (tags-todo "@project+@someday/-DELEGATED-DONE-CANCELLED"
- ((org-agenda-overriding-header "Future Projects:")
- (org-agenda-sorting-strategy
- (quote
- (priority-down deadline-down effort-down)))))
- (org-agenda-list-stuck-projects)
- ))
+ (tags-todo "TODO=\"COMPUTING\"+@irene"
+ ((org-agenda-overriding-header "Computations TGCC")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))))
+ ))
+ ("p" "Projects"
+ ((tags-todo "+@project-@someday/-DELEGATED-DONE-CANCELED"
+ ((org-agenda-overriding-header "Working on:")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))))
+ (tags-todo "+@project+@someday/-DELEGATED-DONE-CANCELED"
+ ((org-agenda-overriding-header "Maybe/Someday Projects:")
+ (org-agenda-sorting-strategy
+ (quote
+ (priority-down deadline-down effort-down)))))
+ (org-agenda-list-stuck-projects)
))
+ ))
- (setq org-stuck-projects
- '("+@project/-DONE-CANCELLED-DELEGATED" ;; entries considered as projects
- ("NEXT" "WORKING") ;; if none of these are present in the subtree, the project is stuck
- ("@someday") ;; list of tags identifying non-stuck projects
- "")) ;; arbitrary regular expression matching non-stuck projects
+ (setq org-stuck-projects
+ '("+@project/-DONE-CANCELED-DELEGATED" ;; entries considered as projects
+ ("NEXT" "WORKING") ;; if none of these are present in the subtree, the project is stuck
+ ("@someday") ;; list of tags identifying non-stuck projects
+ "")) ;; arbitrary regular expression matching non-stuck projects
- ;; as the @project tag defines what is a project, I do not want all the sub-trees are marked also as projects
- ;; I want to manually set what are the projects
- (setq org-tags-exclude-from-inheritance '("@project" "project" "blog" "@excludeFromAgenda"))
+ ;; as the @project tag defines what is a project, I do not want all the sub-trees are marked also as projects
+ ;; I want to manually set what are the projects
+ (setq org-tags-exclude-from-inheritance '("@project" "project" "blog" "@excludeFromAgenda"))
- )
+ )
#+end_src
Furthermore, to automatically set the values displayed in the agenda identifying the file from where the task is being pulled from to the "humanized" name of the file in the file-system, Boris Buliga proposed the following configuration in [[https://d12frosted.io/posts/2020-06-24-task-management-with-roam-vol2.html][this blog post]]. Nevertheless, after some time using it, I removed it from my configuration. A simpler solution is just to specify the =#+category:= value in the heading of the =org= file
@@ -1380,7 +1383,6 @@ And add a key binding for it
(global-set-key (kbd "C-c n w") 'my-denote-weekly-review)
#+end_src
-
* ERC
Initial configuration of the user and chats to connect to.
@@ -1640,6 +1642,13 @@ Figures polaroid like in a blog post
:ensure t)
#+end_src
+* Go-lang mode
+
+#+begin_src emacs-lisp
+ (use-package go-mode
+ :ensure t)
+#+end_src
+
* Packages I want to try and probably use
- PDFTools: https://github.com/vedang/pdf-tools
- Org-noter: https://github.com/weirdNox/org-noter