I’ve spent (quite) some time writing an Emacs major mode for Fvwm as I thought the hilighting Fundamental mode provided was insufficient. Before everything I should thank Thomas Adam for giving me his fvmw.vim file, this has spared me the enormous task of having to look up every single Fvwm keyword in the manpages…
Now on with a disclaimer: this is a work in progress, I consider it to be useful, but there are bound to be errors and shortcomings in it. Also it’s very well possible that some keywords are wrongly categorized. I have left the expressions I used to generate the optimized regular expressions in the file so you can modify it if you feel so inclined, thouh I would appreciate it if you communitcated any errors you found to me.
- syntax hilighting on the main Fvwm configuration file
- hilights FvwmScript’s syntax
This is what it looks like: shot.
- add more keywords
- move wrongly placed keywords around
- add functions to insert Fvwm functions definitions and add keybindings to them
You can grab it here, you should add something like the following to you .emacs configuration file.
[code];; Add the ~/.elisp directory to our emacs load-path
(setq load-path (append load-path (list “~/.elisp”)))
;; load the fvwm-mode so we can use it
;; Automatically load fvwm mode for fvwm configuration files
(cons '(“config” . fvwm-mode)
(cons '(“FvwmApplet-” . fvwm-mode)
(cons '(“FvwmScript-” . fvwm-mode)
You should modify it depending on the name of your Fvwm configuration file (.fvwm2rc for older Fvwm versions) and the naming convention you use for FvwmScript files.
I hope it is at least of use to some people
[EDIT]Added a screenshot
[EDIT]Forgot to show the code on how to include the file in your setup, fixed now