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
** Grobal
#+begin_src emacs-lisp
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;; Org-Mode
;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;; Org-Mode
; Things we can't set as defaults above, we can set here
(defun org-setup ()
(setq line-spacing 3)
(setq global-hl-line-mode nil)
(set-fringe-mode 0)
; Enable habit tracking (and a bunch of other modules)
; position the habit graph on the agenda to the right of the default
(setq org-habit-graph-column 50)
(setq header-line-format " ")
(setq org-ellipsis "⤵")
(setq org-catch-invisible-edits 'show-and-error)
(setq org-hide-emphasis-markers t)
(setq org-fontify-whole-heading-line t)
(setq org-tags-column 0)
(setq org-adapt-indentation t)
;; (setq org-src-preserve-indentation t)
(setq org-deadline-warning-days 0)
(setq line-move-visual t)
;; Keep tasks with dates on the global todo lists
(setq org-agenda-todo-ignore-with-date nil)
;; Keep tasks with deadlines on the global todo lists
(setq org-agenda-todo-ignore-deadlines nil)
;; Keep tasks with scheduled dates on the global todo lists
(setq org-agenda-todo-ignore-scheduled nil)
;; Keep tasks with timestamps on the global todo lists
(setq org-agenda-todo-ignore-timestamp nil)
;; Remove completed deadline tasks from the agenda view
(setq org-agenda-skip-deadline-if-done t)
;; Remove completed scheduled tasks from the agenda view
(setq org-agenda-skip-scheduled-if-done t)
;; Remove completed items from search results
;; (setq org-agenda-skip-timestamp-if-done t)
;; Use sticky agenda's so they persist
(setq org-agenda-sticky t)
;; block tasks if child tasks are not done
(setq org-enforce-todo-dependencies t)
(setq org-cycle-separator-lines 0)
; Things we can't set as defaults above, we can set here
(defun org-setup ()
(setq line-spacing 3)
(setq global-hl-line-mode nil)
(set-fringe-mode 0)
; Enable habit tracking (and a bunch of other modules)
; position the habit graph on the agenda to the right of the default
(setq org-habit-graph-column 50)
(setq header-line-format " ")
(setq org-ellipsis "⤵")
(setq org-catch-invisible-edits 'show-and-error)
(setq org-hide-emphasis-markers t)
(setq org-fontify-whole-heading-line t)
(setq org-tags-column 0)
(setq org-adapt-indentation t)
;; (setq org-src-preserve-indentation t)
(setq org-deadline-warning-days 0)
(setq line-move-visual t)
;; Keep tasks with dates on the global todo lists
(setq org-agenda-todo-ignore-with-date nil)
;; Keep tasks with deadlines on the global todo lists
(setq org-agenda-todo-ignore-deadlines nil)
;; Keep tasks with scheduled dates on the global todo lists
(setq org-agenda-todo-ignore-scheduled nil)
;; Keep tasks with timestamps on the global todo lists
(setq org-agenda-todo-ignore-timestamp nil)
;; Remove completed deadline tasks from the agenda view
(setq org-agenda-skip-deadline-if-done t)
;; Remove completed scheduled tasks from the agenda view
(setq org-agenda-skip-scheduled-if-done t)
;; Remove completed items from search results
;; (setq org-agenda-skip-timestamp-if-done t)
;; Use sticky agenda's so they persist
(setq org-agenda-sticky t)
;; block tasks if child tasks are not done
(setq org-enforce-todo-dependencies t)
(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-tags-column -100) ; take advantage of the screen width
(setq org-agenda-inhibit-startup t)
(setq org-agenda-use-tag-inheritance t)
(setq org-agenda-show-log t)
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled)
(setq org-agenda-time-grid
'((daily today require-timed)
(800 1000 1200 1400 1600 1800 2000)
"......" "----------------"))
(setq org-columns-default-format "%14SCHEDULED %Effort{:} %1PRIORITY %TODO %50ITEM %TAGS")
;; Set default column view headings: Task Effort Clock_Summary
(setq org-columns-default-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM")
; global Effort estimate values
; global STYLE property values for completion
(setq org-agenda-span 2)
(setq org-agenda-tags-column -100) ; take advantage of the screen width
(setq org-agenda-inhibit-startup t)
(setq org-agenda-use-tag-inheritance t)
(setq org-agenda-show-log t)
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled)
(setq org-agenda-time-grid
'((daily today require-timed)
(800 1000 1200 1400 1600 1800 2000)
"......" "----------------"))
(setq org-columns-default-format "%14SCHEDULED %Effort{:} %1PRIORITY %TODO %50ITEM %TAGS")
;; Set default column view headings: Task Effort Clock_Summary
(setq org-columns-default-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM")
; global Effort estimate values
; global STYLE property values for completion
(setq
org-log-created 'time
org-log-done 'time
org-log-reschedule 'time
org-log-redeadline 'time
org-log-into-drawer t)
(setq
org-log-created 'time
org-log-done 'time
org-log-reschedule 'time
org-log-redeadline 'time
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
** Contextes d'agenda
@ -1058,12 +1058,12 @@ Deft
* Sauvegarde et historique
** Sauvegarde à la perte de focus
#+begin_src emacs-lisp
;; sauvegarder les frames quand on change de focus
(defun save-all ()
(interactive)
(save-some-buffers t))
;; sauvegarder les frames quand on change de focus
(defun save-all ()
(interactive)
(save-some-buffers t))
(add-hook 'focus-out-hook 'save-all)
(add-hook 'focus-out-hook 'save-all)
#+end_src
** Auto format à la sauvegarde
#+begin_src emacs-lisp
@ -1116,56 +1116,56 @@ Deft
** Supprimer les espaces de fin
#+begin_src emacs-lisp
(add-hook 'before-save-hook #'delete-trailing-whitespace)
(setq require-final-newline t)
(setq require-final-newline t)
(defalias 'view-emacs-news 'ignore)
(defalias 'describe-gnu-project 'ignore)
(setq mouse-wheel-tilt-scroll t
mouse-wheel-flip-direction t)
(setq-default truncate-lines t)
#+end_src
(defalias 'view-emacs-news 'ignore)
(defalias 'describe-gnu-project 'ignore)
(setq mouse-wheel-tilt-scroll t
mouse-wheel-flip-direction t)
(setq-default truncate-lines t)
#+end_src
** Auto indentation et autres trucs
#+begin_src emacs-lisp
#+begin_src emacs-lisp
(use-package aggressive-indent)
(global-aggressive-indent-mode 1)
(delete-selection-mode t)
;; (global-display-line-numbers-mode t)
(column-number-mode)
(use-package aggressive-indent)
(global-aggressive-indent-mode 1)
(delete-selection-mode t)
;; (global-display-line-numbers-mode t)
(column-number-mode)
(add-hook 'before-save-hook #'delete-trailing-whitespace)
(add-hook 'before-save-hook #'indent-org-block-automatically)
(setq require-final-newline t)
(add-hook 'before-save-hook #'delete-trailing-whitespace)
(add-hook 'before-save-hook #'indent-org-block-automatically)
(setq require-final-newline t)
;; hide some annoyances
(defun do-nothing (interactive))
(defalias 'view-emacs-news 'do-nothing)
(defalias 'describe-gnu-project 'do-nothing)
;; hide some annoyances
(defun do-nothing (interactive))
(defalias 'view-emacs-news 'do-nothing)
(defalias 'describe-gnu-project 'do-nothing)
;; run auto indent org block sources every 10 seconds
(run-at-time 1 10 'indent-org-block-automatically)
;; run auto indent org block sources every 10 seconds
(run-at-time 1 10 'indent-org-block-automatically)
(setq user-full-name "TyKayn"
user-mail-address "contact@cipherbliss.com")
(setq user-full-name "TyKayn"
user-mail-address "contact@cipherbliss.com")
#+end_src
#+end_src
** Markdown
#+begin_src emacs-lisp
#+begin_src emacs-lisp
(use-package markdown-mode
:mode ("\\.\\(njk\\|md\\)\\'" . markdown-mode))
(use-package markdown-mode
:mode ("\\.\\(njk\\|md\\)\\'" . markdown-mode))
#+end_src
#+end_src
** Json
#+begin_src emacs-lisp
(use-package json-mode)
#+begin_src emacs-lisp
(use-package json-mode)
#+end_src
#+end_src
** Sauvegardes des fichiers
#+begin_src emacs-lisp
(setq backup-directory-alist '(("." . "~/.config/emacs/backups")))
#+end_src
#+begin_src emacs-lisp
(setq backup-directory-alist '(("." . "~/.config/emacs/backups")))
#+end_src
* Écriture
@ -1174,6 +1174,7 @@ Deft
#+begin_src emacs-lisp
;; BibLaTeX settings
;; bibtex-mode
(setq bibtex-dialect 'biblatex)
@ -1198,34 +1199,37 @@ Deft
:config
(require 'org-ref))
(org-roam-bibtex-mode)
#+end_src
#+end_src
** Centrer le texte - Olivetti
#+begin_src emacs-lisp
;; olivetti
;; Distraction-free screen
(use-package olivetti
:straight t
:init
(setq olivetti-body-width .67)
:config
)
(setq olivetti-body-width .67
text-scale-increase 1.15
olivetti-mode t
)
#+begin_src emacs-lisp
;; olivetti
;; Distraction-free screen
(use-package olivetti
:straight t
:init
(setq olivetti-body-width .67)
:config
)
(setq olivetti-body-width .67
text-scale-increase 1.15
olivetti-mode t
)
;; change font size on load of text files
(add-hook 'text-mode-hook (lambda ()
(interactive)
(message "Olivetti text-mode-hook")
;; (text-scale-increase 1.5)
(olivetti-set-width .67)
;; (hidden-mode-line-mode)
(olivetti-mode 1)))
;; change font size on load of text files
(add-hook 'text-mode-hook
(lambda ()
(interactive)
(message "Olivetti text-mode-hook")
;; (text-scale-increase 1.5)
(olivetti-set-width .67)
;; (hidden-mode-line-mode)
(olivetti-mode 1)
)
)
;; focus on text in fullscreen
(use-package writeroom-mode)
;; focus on text in fullscreen
(use-package writeroom-mode)
#+end_src
** Auto complétion
@ -1279,7 +1283,8 @@ Deft
(insert-file-contents final)
(buffer-string))
"/*]]>*/-->\n"
"</style>\n")))))
"</style>\n"))
)))
(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 du remplacement avec Ctrl + H
#+begin_src emacs-lisp
;; 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
uuuuehh
* Autre
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
# bash install_emacs_config.sh
#!/bin/bash
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
#+begin_src bash
wget https://forge.chapril.org/tykayn/scripts/raw/branch/master/install_emacs_tk.sh | bash
#+end_src

View File

@ -11,31 +11,23 @@ utiliser la méthode GTD
- 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
- 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
** Paperasses
** RDV boulot
** Pauses
** Fun
* Inbox [0/0] :inbox:
* Not inbox [/]
* Wiki personnel
* Next [/]
* Relances régulières [/]
* Meetings [/]
* Tel [/]
* Blog [/]
* Boulot [/]
* Habitudes [/]
* Emmerdes administratif [/]
* Administratif [/]
* Social [/] :social:
* Relances régulières [/] :relances:
* Boulot [/] :boulot:
* Travaux et bricolage [/] :travaux:
* Associations [/] :assos:
* Social [/] :social:
* Vidéos [/] :videos:
* Achats [/] :achats:
* Dev [/] :dev:
* Administration Système [/] :adminsys:
* Sauvegarde et archives [/] :backup:
** Administration Système [/] :adminsys:
** Sauvegarde et archives [/] :backup:
* Recherche et éducation [/] :edu:
* Lecture [/] :lecture:
* Vacances [/]