diff --git a/ha-config.org b/ha-config.org index 96502ff..dc0a4cd 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1329,7 +1329,7 @@ Using the [[https://github.com/emacsmirror/gist][gist package]] to write code sn #+END_SRC *** Forge Let's extend Magit with [[https://github.com/magit/forge][Magit Forge]] for working with Github and Gitlab: -#+BEGIN_SRC emacs-lisp :tangle no +#+BEGIN_SRC emacs-lisp (use-package forge :after magit :init @@ -1356,13 +1356,11 @@ Let's extend Magit with [[https://github.com/magit/forge][Magit Forge]] for work #+END_SRC Every /so often/, pop over to the following URLs and generate a new token where the *Note* is =forge=, and then copy that into the [[file:~/.authinfo.gpg][~/.authinfo.gpg]]: - - [[https://gitlab.com/-/profile/personal_access_tokens][Gitlab]] - [[https://github.com/settings/tokens][Github]] - and make sure this works: -#+BEGIN_SRC emacs-lisp :tangle no +#+BEGIN_SRC emacs-lisp :tangle no :results replace (ghub-request "GET" "/user" nil :forge 'github :host "api.github.com" diff --git a/ha-feed-reader.org b/ha-feed-reader.org index 9196a03..904f17b 100644 --- a/ha-feed-reader.org +++ b/ha-feed-reader.org @@ -71,13 +71,16 @@ While I would like to share the /status/ of my reads, so ... According to Ben Maughan and [[http://pragmaticemacs.com/emacs/to-eww-or-not-to-eww/][this Pragmatic Emacs essay]], we could easily browse an article in the GUI browser instead of EWW with capital B: #+BEGIN_SRC emacs-lisp -(defun elfeed-show-visit-gui () - "Wrapper for elfeed-show-visit to use gui browser instead of eww" - (interactive) - (let ((browse-url-generic-program "/usr/bin/open")) - (elfeed-show-visit t))) + (use-package elfeed + :config + (defun elfeed-show-visit-gui () + "Wrapper for elfeed-show-visit to use gui browser instead of eww" + (interactive) + (let ((browse-url-generic-program "/usr/bin/open")) + (elfeed-show-visit t))) -(define-key elfeed-show-mode-map (kbd "B") 'elfeed-show-visit-gui) + :bind (:map elfeed-show-mode-map + ("B" . elfeed-show-visit-gui))) #+END_SRC Quick way to start and jump to my world of feeds. diff --git a/ha-programming-python.org b/ha-programming-python.org index d5b4968..5875922 100644 --- a/ha-programming-python.org +++ b/ha-programming-python.org @@ -88,7 +88,8 @@ use_python() { Let’s integrate this [[https://github.com/wbolster/evil-text-object-python][Python support for evil-text-object]] project: #+BEGIN_SRC emacs-lisp (use-package evil-text-object-python - :hook python-mode . evil-text-object-python-add-bindings) + :hook (python-mode . evil-text-object-python-add-bindings)) + #+END_SRC This allows me to delete a Python “block” using ~dal~.