Skip to content

Commit

Permalink
emacs: Bind recompile to F5
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Feb 9, 2025
1 parent af6034c commit af20027
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dotfiles/emacs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,13 @@ Basic settings for Emacs' compilation framework
(setq compilation-always-kill t
compilation-scroll-output t)
Make :kbd:`F5` call ``recompile``

.. code-block:: elisp
:filename: emacs/init.el
(keymap-global-set "<f5>" 'recompile)
The following adds a simple minor mode which, when enabled, will call ``recompile`` each time the buffer is saved

.. code-block:: elisp
Expand Down

0 comments on commit af20027

Please sign in to comment.