Fixed startup bugs
This commit is contained in:
parent
a39df823b5
commit
82ff876a18
3 changed files with 13 additions and 11 deletions
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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~.
|
||||
|
|
Loading…
Reference in a new issue