]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Remove `helpful' package for the time being
authorEshel Yaron <eshel@areionsec.com>
Tue, 10 May 2022 09:43:37 +0000 (12:43 +0300)
committerEshel Yaron <eshel@areionsec.com>
Tue, 10 May 2022 09:43:37 +0000 (12:43 +0300)
.emacs.d/esy.org

index 48e198fafb5ae58f70efad2eac6b7479e5744ad7..e1e5c39c922ddeb352c6b2d0c739316c0fbfca69 100644 (file)
@@ -117,7 +117,7 @@ For further information about Elisp headers, see [[info:elisp#Library
           expand-region flymake-swi-prolog fullframe ggtags git-blamed
           git-timemachine gitconfig-mode gitignore-mode
           gnu-elpa-keyring-update gnuplot gnuplot-mode go-mode
-          graphviz-dot-mode helpful highlight-escape-sequences htmlize
+          graphviz-dot-mode highlight-escape-sequences htmlize
           ialign keyfreq keycast iedit lin list-unicode-display
           lorem-ipsum magit-todos marginalia move-dup no-littering
           ns-auto-titlebar ob-prolog orderless org-superstar paredit
@@ -315,6 +315,18 @@ For a list of available frame parameters, see [[info:elisp#Frame Parameters][eli
     (keymap-unset org-mode-map "C-," t))
 #+end_src
 
+** Refile targets
+
+By default, =org-refile= considers only top level heading to be
+candidates for refiling into, we set =org-refile-targets= to allow
+refiling directly into deeper headings as well.
+
+#+begin_src emacs-lisp
+  (with-eval-after-load 'org-refile
+    (setq org-refile-targets '((nil . (:maxlevel . 3)))
+          org-refile-use-outline-path t))
+#+end_src
+
 ** Interactively fill missing CUSTOM_ID properties
 :PROPERTIES:
 :CUSTOM_ID: orgs-custom-ids
@@ -793,24 +805,6 @@ For a list of available frame parameters, see [[info:elisp#Frame Parameters][eli
   (add-hook 'after-init-hook #'esy/customize-ctl-x-map)
 #+end_src
 
-** =C-h= keybindings
-:PROPERTIES:
-:CUSTOM_ID: c-h-keybindings
-:END:
-
-#+begin_src emacs-lisp
-  (defun esy/customize-help-map ()
-    "Configure the `help-map' keymap."
-    (require 'helpful)
-    (keymap-set help-map "f" #'helpful-callable)
-    (keymap-set help-map "v" #'helpful-variable)
-    (keymap-set help-map "k" #'helpful-key)
-    (keymap-set help-map "o" #'helpful-symbol)
-    (keymap-set help-map "x" #'helpful-command))
-
-  (add-hook 'after-init-hook #'esy/customize-help-map)
-#+end_src
-
 ** =ace-window= homerow keys
 :PROPERTIES:
 :CUSTOM_ID: ace-window
@@ -893,6 +887,19 @@ the prior submitted URLs and web search keywords.
                           'eww-prompt-history
                           (car (eww-suggested-uris)))))
 #+end_src
+*** Use =eww= as the default web browser
+:PROPERTIES:
+:CUSTOM_ID: eww-browse-url-browser-function
+:CreatedAt: <2022-05-09 Mon>
+:CapturedAt: [[file:~/checkouts/emacs/nextstep/Emacs.app/Contents/Resources/lisp/net/browse-url.el.gz::setq browse-url-browser-function 'browse-url-w3]]
+:CapturedAs: Emacs configuration fragment
+:END:
+
+#+begin_src emacs-lisp
+  (with-eval-after-load 'browse-url
+    (setq browse-url-browser-function #'eww-browse-url))
+#+end_src
+
 ** Proced
 :PROPERTIES:
 :CUSTOM_ID: proced-auto-update