From aced36ad35d85131d63376194541e52d4f73e537 Mon Sep 17 00:00:00 2001 From: kj Date: Thu, 5 May 2022 01:59:45 -0400 Subject: [PATCH] Refining org config. --- configs/org-config.el | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/configs/org-config.el b/configs/org-config.el index b24aa1a..961e66d 100644 --- a/configs/org-config.el +++ b/configs/org-config.el @@ -15,7 +15,7 @@ (visual-fill-column-mode 1) ;; Configuración de fonts - (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face)) + ;; (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face)) ;; Ensure that anything that should be fixed-pitch in Org files appears that way (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch) @@ -32,7 +32,7 @@ :strike-through t :foreground "light gray") -) + ) (use-package org :defer t @@ -47,10 +47,13 @@ (setq org-agenda-start-with-log-mode t) (setq org-log-done 'time) (setq org-log-into-drawer t) - (setq org-cycle-separator-lines -1) + (setq org-cycle-separator-lines 2) ;; Identación - (org-indent-mode) + (setq org-startup-indented t) + (setq org-src-preserve-indentation nil) + (setq org-edit-src-content-indentation 0) + (setq org-src-tab-acts-natively t) ;; Palabras claves del To Do de org-mode (setq org-todo-keywords @@ -66,12 +69,12 @@ ;; Embellecer los checkbox - (add-hook 'org-mode-hook (lambda () - "Beautify Org Checkbox Symbol" - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) - (push '("[-]" . "❍" ) prettify-symbols-alist) - (prettify-symbols-mode))) + ;; (add-hook 'org-mode-hook (lambda () + ;; "Beautify Org Checkbox Symbol" + ;; (push '("[ ]" . "☐") prettify-symbols-alist) + ;; (push '("[X]" . "☑" ) prettify-symbols-alist) + ;; (push '("[-]" . "❍" ) prettify-symbols-alist) + ;; (prettify-symbols-mode))) ;; Tachar los checkbox marcados como terminados (defface org-checkbox-done-text @@ -121,13 +124,14 @@ ) (use-package org-bullets + :defer t :hook (org-mode . org-bullets-mode)) (use-package visual-fill-column :config ;; Tamaño de la columna - (setq visual-fill-column-width 150) + (setq-default visual-fill-column-width 150) ;; Centrar el texto (setq-default visual-fill-column-center-text t) )