From d2118e8913b8f0a28732f1a285ccad93bca034c0 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 14 Aug 2024 13:59:47 +0100 Subject: [PATCH] Fix python offset rather than guessing Add bind to open org tasks file --- README.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.org b/README.org index 073c608..0deb379 100644 --- a/README.org +++ b/README.org @@ -1508,6 +1508,8 @@ Configure email with iCalendar event support, to integrate with (python-shell-interpreter "python3") (python-shell-dedicated nil) (python-shell-completion-native-enable nil) + (python-indent-guess-indent-offset nil) + (python-indent-offset 4) (python-indent-def-block-scale 1) :config (setq python-ts-mode-hook python-mode-hook)) @@ -1651,6 +1653,13 @@ Configure email with iCalendar event support, to integrate with (find-file org-directory)) (keymap-global-set "C-c w o" #'my/open-org-directory) + (defun my/open-tasks-file () + "Open tasks org file." + (interactive) + (require 'org) + (find-file (expand-file-name "tasks.org.gpg" org-directory))) + (keymap-global-set "C-c w C-o" #'my/open-tasks-file) + (defun my/open-global-bibliography () "Open `org-cite-global-bibliography'." (interactive)