Create the magit-goto-beginning-of-section helper

This commit is contained in:
Gergely Polonkai 2025-03-31 12:48:31 +02:00
parent e38146c77b
commit 3552e17ae9
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -675,6 +675,17 @@ From [[http://whattheemacsd.com/file-defuns.el-02.html][whattheemacsd.org]].
(message "File '%s' successfully removed" filename)))))
#+end_src
** Magit
*** Go to the beginning of the current section
#+begin_src emacs-lisp
(defun gpolonkai/magit-goto-beginning-of-section ()
(interactive)
(let ((section (magit-current-section)))
(magit-section-goto section)))
#+end_src
* Set up the very basics
Now that we have package management configured we can set up defaults more easily. This includes every builtin packages, font faces, and the like.