commit 9861594ba08f83f3483583802be4627811c7aa4c
parent 9119a3c34182e6643d93465dda4a65935a509b2b
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sun, 31 Aug 2025 15:20:04 +0200
emacs: org-mode config
Diffstat:
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -1786,9 +1786,8 @@ Install Org and require additional components that I use.
"List projects that are stuck (don't have a next action)")
(org-tag-alist (let ((za/org-tag-energy-levels
'((:startgroup)
- ("sport" . ?h) ; Sport (deep focus, long tasks, no interruptions, at least an hour)
- ("cruise" . ?l) ; Cruise (shallow focus, can be interrupted, can batch lots of quick tasks together)
- ("parked" . ?e) ; Parked (take a break, look into the distance, walk the dog, stretch, etc.)
+ ("deep" . ?h)
+ ("quick-shallow" . ?l)
("errand" . ?o) ; Errand (anything that involves me being out of the house)
(:endgroup)))
(za/org-tag-1-3-5
@@ -2266,7 +2265,7 @@ For listing tasks without an energy level - skip if it has an energy level:
(let ((skip (save-excursion (org-end-of-subtree t)))
(keep nil)
(item-tags-without-inherited (let ((org-use-tag-inheritance nil)) (org-get-tags)))
- (energy-tag-p (lambda (s) (member s '("sport" "cruise" "parked" "errand")))))
+ (energy-tag-p (lambda (s) (member s '("deep" "quick-shallow" "errand")))))
(if (cl-some energy-tag-p item-tags-without-inherited)
skip
keep)))
@@ -2434,6 +2433,7 @@ I tried org-edna but I couldn't get it working after an hour of effort. So a bit
(t t))))
(when should-change-state
(org-entry-put (point) "TODO" "NEXT")))))))
+ (add-hook #'org-after-todo-state-change-hook #'za/gtd-auto-next)
#+end_src
*** Logging for tasks
diff --git a/nvim/init.lua b/nvim/init.lua
@@ -9,32 +9,32 @@ source $MYOLDVIMRC
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
-vim.g.mapleader = ' '
-vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
+vim.g.mapleader = " "
+vim.keymap.set({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
-- Install Lazy
-local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
- local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
- local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
- if vim.v.shell_error ~= 0 then
- error('Error cloning lazy.nvim:\n' .. out)
- end
+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
+ if vim.v.shell_error ~= 0 then
+ error("Error cloning lazy.nvim:\n" .. out)
+ end
end
vim.opt.rtp:prepend(lazypath)
-- Load everything from ./lua/plugins.lua, ./lua/plugins/*.lua
-require('lazy').setup('plugins', {
- performance = {
- rtp = {
- reset = false,
- },
- },
+require("lazy").setup("plugins", {
+ performance = {
+ rtp = {
+ reset = false,
+ },
+ },
})
-- Set completeopt to have a better completion experience
-vim.o.completeopt = 'menuone,noselect'
+vim.o.completeopt = "menuone,noselect"
-require('highlight_on_yank')
-require('mappings')
-require('netrw_target')
+require("highlight_on_yank")
+require("mappings")
+require("netrw_target")