GNU ELPA - sxhkdrc-mode

sxhkdrc-mode Atom Feed

Description
Major mode for sxhkdrc files (Simple X Hot Key Daemon)
Latest
sxhkdrc-mode-1.2.0.tar (.sig), 2025-Aug-14, 20.0 KiB
Maintainer
Protesilaos Stavrou <info@protesilaos.com>
Website
https://github.com/protesilaos/sxhkdrc-mode
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

sxhkdrc-mode for GNU Emacs

This is a major mode for editing sxhkdrc files. SXHKD is the Simple X Hot Key Daemon which is commonly used in minimalist desktop sessions on Xorg (I use it with bspwm, herbstluftwm, and i3wm). The sxhkdrc file configures key chords, binding them to commands. For the technicalities, read the manpage sxhkd(1).

Usage

Install the mode and use with any sxhkdrc file:

(use-package sxhkdrc-mode
  :ensure t
  :mode "sxhkdrc.*")

Restart the sxhkd daemon on demand with the command sxhkdrc-mode-restart. Or make it happen automatically each time you save a buffer that uses the sxhkdrc-mode by setting up the sxhkdrc-mode-auto-restart like this:

;; automatically reload the daemon after saving the file
(add-hook 'sxhkdrc-mode-hook #'sxhkdrc-mode-auto-restart)

Putting it all together:

(use-package sxhkdrc-mode
  :ensure t
  :mode "sxhkdrc.*" ; if you want more than just "sxhkdrc"
  :commands (sxhkdrc-mode-restart)
  :hook (sxhkdrc-mode . sxhkdrc-mode-auto-restart))

Old versions

sxhkdrc-mode-1.1.0.tar.lz2024-Dec-244.67 KiB
sxhkdrc-mode-1.0.0.tar.lz2024-Mar-313.72 KiB
sxhkdrc-mode-0.1.5.tar.lz2023-Feb-062.85 KiB
sxhkdrc-mode-0.1.4.tar.lz2022-Dec-142.50 KiB
sxhkdrc-mode-0.1.1.tar.lz2022-Dec-142.46 KiB