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: Select all
;; 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