From 93739a059101d111d5abc67d83a377efe6bf21b3 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 30 Jun 2022 11:44:42 -0500 Subject: [PATCH] narrowing in org-mode --- README.org | 8 +++++--- init.el | 25 +++++-------------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/README.org b/README.org index 407e5f26..6b48eecf 100644 --- a/README.org +++ b/README.org @@ -114,9 +114,9 @@ In order to have this config work on both my desktop with regular joe-schmoe mon (defun chris/set-transparency () "Set the frame to be transparent on Wayland compositors" - (set-frame-parameter (selected-frame) 'alpha '(100 . 100)) - (add-to-list 'default-frame-alist '(alpha . (100 . 100))) - (add-to-list 'initial-frame-alist '(alpha . (100 . 100)))) + (set-frame-parameter (selected-frame) 'alpha-background 85) + (add-to-list 'default-frame-alist '(alpha-background . 85)) + (add-to-list 'initial-frame-alist '(alpha-background . 85))) (if (daemonp) (add-hook 'after-make-frame-functions @@ -707,6 +707,8 @@ Part of this config includes some special capture templates for my work as a you "ge" 'org-edit-src-code "gr" 'revert-buffer "ze" 'org-emphasize + "zn" 'org-narrow-to-subtree + "zw" 'widen "S" 'org-schedule "t" 'org-todo) ('insert org-mode-map diff --git a/init.el b/init.el index 11099395..a1bca796 100644 --- a/init.el +++ b/init.el @@ -39,9 +39,9 @@ (defun chris/set-transparency () "Set the frame to be transparent on Wayland compositors" - (set-frame-parameter (selected-frame) 'alpha '(100 . 100)) - (add-to-list 'default-frame-alist '(alpha . (100 . 100))) - (add-to-list 'initial-frame-alist '(alpha . (100 . 100)))) + (set-frame-parameter (selected-frame) 'alpha-background 85) + (add-to-list 'default-frame-alist '(alpha-background . 85)) + (add-to-list 'initial-frame-alist '(alpha-background . 85))) (if (daemonp) (add-hook 'after-make-frame-functions @@ -507,6 +507,8 @@ "ge" 'org-edit-src-code "gr" 'revert-buffer "ze" 'org-emphasize + "zn" 'org-narrow-to-subtree + "zw" 'widen "S" 'org-schedule "t" 'org-todo) ('insert org-mode-map @@ -2244,20 +2246,3 @@ interfere with the default `bongo-playlist-buffer'." gcmh-verbose nil)) (setq warning-suppress-types '((comp))) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(pdf-misc-print-program "/usr/bin/lpr") - '(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot")) - '(safe-local-variable-values - '((aggressive-indent-mode) - (projectile-project-run-cmd . "./build/bin/presenter") - (projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make --dir build/")))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))