From 4247823c6f0b7a9d14b8372aab827483bff1b603 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Mon, 25 Dec 2023 12:52:06 +0300 Subject: [PATCH] emacs: fix my/org-file-open keybinding --- .emacs.d/init.el | 5 +++-- Emacs.org | 13 +++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4d6ab77..abd730b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2965,8 +2965,9 @@ With ARG, repeats or can move backward if negative." (concat org-directory "/" (completing-read "Org file: " files))))) -(my-leader-def - "o o" 'my/org-file-open) +(with-eval-after-load 'org + (my-leader-def + "o o" 'my/org-file-open)) (use-package jupyter :straight t diff --git a/Emacs.org b/Emacs.org index 7ee126a..f11c203 100644 --- a/Emacs.org +++ b/Emacs.org @@ -960,6 +960,14 @@ References: (setq default-input-method "russian-computer") #+end_src +=M-x delete-horizontal-space= doesn't feel that useful to me. + +#+begin_src emacs-lisp +(general-define-key + :keymaps 'global-map + "M-\\" #'toggle-input-method) +#+end_src + *** Other small packages **** Managing parentheses (smartparens) A minor mode to deal with pairs. Its functionality overlaps with evil-surround, but smartparens provides the most comfortable way to do stuff like automatically insert pairs. @@ -4100,8 +4108,9 @@ A function to open a file from =org-directory=, excluding a few directories like (concat org-directory "/" (completing-read "Org file: " files))))) -(my-leader-def - "o o" 'my/org-file-open) +(with-eval-after-load 'org + (my-leader-def + "o o" 'my/org-file-open)) #+end_src ** Literate programing *** Python & Jupyter