sxhkd-mode A major mode for editing sxhkdrc Set up like this: (add-to-list 'auto-mode-alist `(,(rx "sxhkdrc" string-end) . sxhkd-mode)) This mode also can reload your config after save. Customize sxhkd-mode-reload-config