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

This commit is contained in:
2025-03-31 12:48:31 +02:00
parent e38146c77b
commit 3552e17ae9

View File

@@ -675,6 +675,17 @@ From [[http://whattheemacsd.com/file-defuns.el-02.html][whattheemacsd.org]].
(message "File '%s' successfully removed" filename))))) (message "File '%s' successfully removed" filename)))))
#+end_src #+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 * 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. Now that we have package management configured we can set up defaults more easily. This includes every builtin packages, font faces, and the like.