up tasks example

This commit is contained in:
Tykayn 2022-10-08 11:56:22 +02:00 committed by tykayn
parent 99c08e560c
commit 663c79895e
2 changed files with 160 additions and 177 deletions

View File

@ -78,89 +78,89 @@ Contenu du fichier de config [[file:~/.emacs]]
* Orgmode * Orgmode
** Grobal ** Grobal
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;; Org-Mode ;; Org-Mode
; Things we can't set as defaults above, we can set here ; Things we can't set as defaults above, we can set here
(defun org-setup () (defun org-setup ()
(setq line-spacing 3) (setq line-spacing 3)
(setq global-hl-line-mode nil) (setq global-hl-line-mode nil)
(set-fringe-mode 0) (set-fringe-mode 0)
; Enable habit tracking (and a bunch of other modules) ; Enable habit tracking (and a bunch of other modules)
; position the habit graph on the agenda to the right of the default ; position the habit graph on the agenda to the right of the default
(setq org-habit-graph-column 50) (setq org-habit-graph-column 50)
(setq header-line-format " ") (setq header-line-format " ")
(setq org-ellipsis "⤵") (setq org-ellipsis "⤵")
(setq org-catch-invisible-edits 'show-and-error) (setq org-catch-invisible-edits 'show-and-error)
(setq org-hide-emphasis-markers t) (setq org-hide-emphasis-markers t)
(setq org-fontify-whole-heading-line t) (setq org-fontify-whole-heading-line t)
(setq org-tags-column 0) (setq org-tags-column 0)
(setq org-adapt-indentation t) (setq org-adapt-indentation t)
;; (setq org-src-preserve-indentation t) ;; (setq org-src-preserve-indentation t)
(setq org-deadline-warning-days 0) (setq org-deadline-warning-days 0)
(setq line-move-visual t) (setq line-move-visual t)
;; Keep tasks with dates on the global todo lists ;; Keep tasks with dates on the global todo lists
(setq org-agenda-todo-ignore-with-date nil) (setq org-agenda-todo-ignore-with-date nil)
;; Keep tasks with deadlines on the global todo lists ;; Keep tasks with deadlines on the global todo lists
(setq org-agenda-todo-ignore-deadlines nil) (setq org-agenda-todo-ignore-deadlines nil)
;; Keep tasks with scheduled dates on the global todo lists ;; Keep tasks with scheduled dates on the global todo lists
(setq org-agenda-todo-ignore-scheduled nil) (setq org-agenda-todo-ignore-scheduled nil)
;; Keep tasks with timestamps on the global todo lists ;; Keep tasks with timestamps on the global todo lists
(setq org-agenda-todo-ignore-timestamp nil) (setq org-agenda-todo-ignore-timestamp nil)
;; Remove completed deadline tasks from the agenda view ;; Remove completed deadline tasks from the agenda view
(setq org-agenda-skip-deadline-if-done t) (setq org-agenda-skip-deadline-if-done t)
;; Remove completed scheduled tasks from the agenda view ;; Remove completed scheduled tasks from the agenda view
(setq org-agenda-skip-scheduled-if-done t) (setq org-agenda-skip-scheduled-if-done t)
;; Remove completed items from search results ;; Remove completed items from search results
;; (setq org-agenda-skip-timestamp-if-done t) ;; (setq org-agenda-skip-timestamp-if-done t)
;; Use sticky agenda's so they persist ;; Use sticky agenda's so they persist
(setq org-agenda-sticky t) (setq org-agenda-sticky t)
;; block tasks if child tasks are not done ;; block tasks if child tasks are not done
(setq org-enforce-todo-dependencies t) (setq org-enforce-todo-dependencies t)
(setq org-cycle-separator-lines 0) (setq org-cycle-separator-lines 0)
;; Enable display of the time grid so we can see the marker for the current time ;; Enable display of the time grid so we can see the marker for the current time
(setq org-agenda-span 2) (setq org-agenda-span 2)
(setq org-agenda-tags-column -100) ; take advantage of the screen width (setq org-agenda-tags-column -100) ; take advantage of the screen width
(setq org-agenda-inhibit-startup t) (setq org-agenda-inhibit-startup t)
(setq org-agenda-use-tag-inheritance t) (setq org-agenda-use-tag-inheritance t)
(setq org-agenda-show-log t) (setq org-agenda-show-log t)
(setq org-agenda-skip-scheduled-if-done t) (setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t) (setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled) (setq org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled)
(setq org-agenda-time-grid (setq org-agenda-time-grid
'((daily today require-timed) '((daily today require-timed)
(800 1000 1200 1400 1600 1800 2000) (800 1000 1200 1400 1600 1800 2000)
"......" "----------------")) "......" "----------------"))
(setq org-columns-default-format "%14SCHEDULED %Effort{:} %1PRIORITY %TODO %50ITEM %TAGS") (setq org-columns-default-format "%14SCHEDULED %Effort{:} %1PRIORITY %TODO %50ITEM %TAGS")
;; Set default column view headings: Task Effort Clock_Summary ;; Set default column view headings: Task Effort Clock_Summary
(setq org-columns-default-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM") (setq org-columns-default-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM")
; global Effort estimate values ; global Effort estimate values
; global STYLE property values for completion ; global STYLE property values for completion
(setq (setq
org-log-created 'time org-log-created 'time
org-log-done 'time org-log-done 'time
org-log-reschedule 'time org-log-reschedule 'time
org-log-redeadline 'time org-log-redeadline 'time
org-log-into-drawer t) org-log-into-drawer t)
)
(add-hook 'org-mode-hook #'org-setup)
;; click a link in the same frame when opening a file
(custom-set-variables
'(org-link-frame-setup
'((vm . vm-visit-folder-other-frame)
(vm-imap . vm-visit-imap-folder-other-frame)
(gnus . org-gnus-no-new-news)
(file . find-file)
(wl . wl-other-frame)))
'(git-gutter:visual-line t)
) )
(add-hook 'org-mode-hook #'org-setup)
;; click a link in the same frame when opening a file
(custom-set-variables
'(org-link-frame-setup
'((vm . vm-visit-folder-other-frame)
(vm-imap . vm-visit-imap-folder-other-frame)
(gnus . org-gnus-no-new-news)
(file . find-file)
(wl . wl-other-frame)))
'(git-gutter:visual-line t)
)
#+end_src #+end_src
** Contextes d'agenda ** Contextes d'agenda
@ -1058,12 +1058,12 @@ Deft
* Sauvegarde et historique * Sauvegarde et historique
** Sauvegarde à la perte de focus ** Sauvegarde à la perte de focus
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; sauvegarder les frames quand on change de focus ;; sauvegarder les frames quand on change de focus
(defun save-all () (defun save-all ()
(interactive) (interactive)
(save-some-buffers t)) (save-some-buffers t))
(add-hook 'focus-out-hook 'save-all) (add-hook 'focus-out-hook 'save-all)
#+end_src #+end_src
** Auto format à la sauvegarde ** Auto format à la sauvegarde
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -1116,56 +1116,56 @@ Deft
** Supprimer les espaces de fin ** Supprimer les espaces de fin
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-hook 'before-save-hook #'delete-trailing-whitespace) (add-hook 'before-save-hook #'delete-trailing-whitespace)
(setq require-final-newline t) (setq require-final-newline t)
(defalias 'view-emacs-news 'ignore) (defalias 'view-emacs-news 'ignore)
(defalias 'describe-gnu-project 'ignore) (defalias 'describe-gnu-project 'ignore)
(setq mouse-wheel-tilt-scroll t (setq mouse-wheel-tilt-scroll t
mouse-wheel-flip-direction t) mouse-wheel-flip-direction t)
(setq-default truncate-lines t) (setq-default truncate-lines t)
#+end_src #+end_src
** Auto indentation et autres trucs ** Auto indentation et autres trucs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package aggressive-indent) (use-package aggressive-indent)
(global-aggressive-indent-mode 1) (global-aggressive-indent-mode 1)
(delete-selection-mode t) (delete-selection-mode t)
;; (global-display-line-numbers-mode t) ;; (global-display-line-numbers-mode t)
(column-number-mode) (column-number-mode)
(add-hook 'before-save-hook #'delete-trailing-whitespace) (add-hook 'before-save-hook #'delete-trailing-whitespace)
(add-hook 'before-save-hook #'indent-org-block-automatically) (add-hook 'before-save-hook #'indent-org-block-automatically)
(setq require-final-newline t) (setq require-final-newline t)
;; hide some annoyances ;; hide some annoyances
(defun do-nothing (interactive)) (defun do-nothing (interactive))
(defalias 'view-emacs-news 'do-nothing) (defalias 'view-emacs-news 'do-nothing)
(defalias 'describe-gnu-project 'do-nothing) (defalias 'describe-gnu-project 'do-nothing)
;; run auto indent org block sources every 10 seconds ;; run auto indent org block sources every 10 seconds
(run-at-time 1 10 'indent-org-block-automatically) (run-at-time 1 10 'indent-org-block-automatically)
(setq user-full-name "TyKayn" (setq user-full-name "TyKayn"
user-mail-address "contact@cipherbliss.com") user-mail-address "contact@cipherbliss.com")
#+end_src #+end_src
** Markdown ** Markdown
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package markdown-mode (use-package markdown-mode
:mode ("\\.\\(njk\\|md\\)\\'" . markdown-mode)) :mode ("\\.\\(njk\\|md\\)\\'" . markdown-mode))
#+end_src #+end_src
** Json ** Json
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package json-mode) (use-package json-mode)
#+end_src #+end_src
** Sauvegardes des fichiers ** Sauvegardes des fichiers
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq backup-directory-alist '(("." . "~/.config/emacs/backups"))) (setq backup-directory-alist '(("." . "~/.config/emacs/backups")))
#+end_src #+end_src
* Écriture * Écriture
@ -1174,6 +1174,7 @@ Deft
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; BibLaTeX settings ;; BibLaTeX settings
;; bibtex-mode ;; bibtex-mode
(setq bibtex-dialect 'biblatex) (setq bibtex-dialect 'biblatex)
@ -1198,34 +1199,37 @@ Deft
:config :config
(require 'org-ref)) (require 'org-ref))
(org-roam-bibtex-mode) (org-roam-bibtex-mode)
#+end_src #+end_src
** Centrer le texte - Olivetti ** Centrer le texte - Olivetti
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; olivetti ;; olivetti
;; Distraction-free screen ;; Distraction-free screen
(use-package olivetti (use-package olivetti
:straight t :straight t
:init :init
(setq olivetti-body-width .67) (setq olivetti-body-width .67)
:config :config
) )
(setq olivetti-body-width .67 (setq olivetti-body-width .67
text-scale-increase 1.15 text-scale-increase 1.15
olivetti-mode t olivetti-mode t
) )
;; change font size on load of text files ;; change font size on load of text files
(add-hook 'text-mode-hook (lambda () (add-hook 'text-mode-hook
(interactive) (lambda ()
(message "Olivetti text-mode-hook") (interactive)
;; (text-scale-increase 1.5) (message "Olivetti text-mode-hook")
(olivetti-set-width .67) ;; (text-scale-increase 1.5)
;; (hidden-mode-line-mode) (olivetti-set-width .67)
(olivetti-mode 1))) ;; (hidden-mode-line-mode)
(olivetti-mode 1)
)
)
;; focus on text in fullscreen ;; focus on text in fullscreen
(use-package writeroom-mode) (use-package writeroom-mode)
#+end_src #+end_src
** Auto complétion ** Auto complétion
@ -1279,7 +1283,8 @@ Deft
(insert-file-contents final) (insert-file-contents final)
(buffer-string)) (buffer-string))
"/*]]>*/-->\n" "/*]]>*/-->\n"
"</style>\n"))))) "</style>\n"))
)))
(add-hook 'org-export-before-processing-hook 'my-org-inline-css-hook) (add-hook 'org-export-before-processing-hook 'my-org-inline-css-hook)
@ -1343,34 +1348,20 @@ Deft
faire de la recherche avec Ctrl + F faire de la recherche avec Ctrl + F
faire du remplacement avec Ctrl + H faire du remplacement avec Ctrl + H
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; non pris en compte pour l'ajout d'une deadline ou schedule ;; non pris en compte pour l'ajout d'une deadline ou schedule
(setq calendar-day-abbrev-array ["Dim" "Lun" "Mar" "Mer" "Jeu" "Ven" "Sam"]) (setq calendar-day-abbrev-array ["Dim" "Lun" "Mar" "Mer" "Jeu" "Ven" "Sam"])
#+end_src #+end_src
uuuuehh uuuuehh
* Autre * Autre
La suite est à inventer. La suite est à inventer.
Pour installer cette configuration d'emacs, lancez le script Pour installer cette configuration d'emacs, lancez le script qui se trouve ici https://forge.chapril.org/tykayn/scripts/src/branch/master/install_emacs_tk.sh
#+begin_quote bash #+begin_src bash
# bash install_emacs_config.sh wget https://forge.chapril.org/tykayn/scripts/raw/branch/master/install_emacs_tk.sh | bash
#!/bin/bash #+end_src
echo "installation d'emacs version snap"
sudo apt install snapd
snap install emacs --channel=beta --classic
mkdir -p ~/Nextcloud/textes/orgmode
mkdir -p ~/Nextcloud/textes/orgmode/org-roam
mkdir -p ~/Nextcloud/textes/orgmode
touch ~/.emacs
touch ~/Nextcloud/textes/orgmode/config.org
touch ~/Nextcloud/textes/orgmode/tasks.org
#+end_quote

View File

@ -11,31 +11,23 @@ utiliser la méthode GTD
- Vider son fichier de notes TODO du téléphone - Vider son fichier de notes TODO du téléphone
Remplir l'inbox avec les notes de nextcloud https://cloud.tykayn.fr/index.php/apps/notes/note/405928 Remplir l'inbox avec les notes de nextcloud https://cloud.tykayn.fr/index.php/apps/notes/note/405928
- Voir l'agenda de la semaine: https://cloud.tykayn.fr/index.php/apps/calendar/timeGridWeek/now - Voir l'agenda de la semaine: https://cloud.tykayn.fr/index.php/apps/calendar/timeGridWeek/now
* Activités quantifiées globales * Inbox [0/0] :inbox:
* Activités globales
** Lecture ** Lecture
** Paperasses ** Paperasses
** RDV boulot ** RDV boulot
** Pauses ** Pauses
** Fun ** Fun
* Inbox [0/0] :inbox: * Administratif [/]
* Not inbox [/] * Social [/] :social:
* Wiki personnel * Relances régulières [/] :relances:
* Next [/] * Boulot [/] :boulot:
* Relances régulières [/]
* Meetings [/]
* Tel [/]
* Blog [/]
* Boulot [/]
* Habitudes [/]
* Emmerdes administratif [/]
* Travaux et bricolage [/] :travaux: * Travaux et bricolage [/] :travaux:
* Associations [/] :assos: * Associations [/] :assos:
* Social [/] :social:
* Vidéos [/] :videos:
* Achats [/] :achats: * Achats [/] :achats:
* Dev [/] :dev: * Dev [/] :dev:
* Administration Système [/] :adminsys: ** Administration Système [/] :adminsys:
* Sauvegarde et archives [/] :backup: ** Sauvegarde et archives [/] :backup:
* Recherche et éducation [/] :edu: * Recherche et éducation [/] :edu:
* Lecture [/] :lecture: * Lecture [/] :lecture:
* Vacances [/] * Vacances [/]