From a997d2065238ad2124b24ca07f7e3fc3a576ca94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Tue, 22 Mar 2022 19:33:00 +0100 Subject: [PATCH] First complete configuration - Add some pending tasks - Add 'expand-region' git recipe - Freezes some packages lile python, epa-file and org-crypt --- myconfig.org | 57 +++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/myconfig.org b/myconfig.org index d1d1b07..6a1e8d2 100644 --- a/myconfig.org +++ b/myconfig.org @@ -1,11 +1,13 @@ #+startup: overview * Pending task -- Set org-mode - Set dap-mode - Add more programming languages to LSP - Try =eglot= - Spell checking +- Check +- Check =pdf-tools= +- Check =org-presentation= * Famous init files - [[https://github.com/zamansky/dot-emacs][The Big Zemansky]] @@ -1296,6 +1298,7 @@ Not needed if you have the right settings on your active python with =pyenv= *** Configure python mode #+begin_src emacs-lisp (use-package python-mode + :straight nil :hook (python-mode . lsp-deferred) ;; :custom ;; (dap-python-debugger 'debugpy) @@ -1412,38 +1415,42 @@ Usamos =pyenv= para gestionar los /virtualenv/ You *must* have R installed in your system, otherwise this package is useless. #+begin_src emacs-lisp -(use-package ess - :init (require 'ess-site)) + ;; (use-package ess + ;; :init (require 'ess-site)) #+end_src * misc packages ** Expand region - #+begin_src emacs-lisp - (global-hl-line-mode t) - - (use-package expand-region - :config - (global-set-key (kbd "C-=") 'er/expand-region) - ) - #+end_src +#+begin_src emacs-lisp + (use-package expand-region + :straight ( + expand-region + :type git + :host github + :repo "magnars/expand-region.el") + :config + (global-set-key (kbd "C-=") 'er/expand-region) + ) +#+end_src ** EasyPG and org-crypt Ver [[https://orgmode.org/worg/org-tutorials/encrypting-files.html][referencia en org-mode manual]] y [[http://www.clintonboys.com/gpg/][notas de Clintonboys]] #+begin_src emacs-lisp - ;; (use-package epa-file - ;; :config - ;; (setq epa-file-encrypt-to '("salvari@protonmail.com")) - ;; :custom - ;; (epa-file-select-keys 'silent)) - ;; - ;; (use-package org-crypt - ;; ;; :ensure nil ;; included with org-mode - ;; :after org - ;; :config - ;; (org-crypt-use-before-save-magic) - ;; (setq org-tags-exclude-from-inheritance (quote ("crypt"))) - ;; :custom - ;; (org-crypt-key "salvari@protonmail.com")) + (use-package epa-file + :straight nil + :config + (setq epa-file-encrypt-to '("salvari@protonmail.com")) + :custom + (epa-file-select-keys 'silent)) + + (use-package org-crypt + :straight nil ;; included with org-mode + :after org + :config + (org-crypt-use-before-save-magic) + (setq org-tags-exclude-from-inheritance (quote ("crypt"))) + :custom + (org-crypt-key "salvari@protonmail.com")) #+end_src ** Olivetti: distraction-free writing enviroment