I'm trying to get the font-lock stuff in plsql.el (https://www.emacswiki.org//emacs/plsql.el) to work in Emacs 24 (that's the version provided by my Linux distro), but it doesn't highlight automatically on entering the mode and it only highlights strings and comments, not keywords like procedure
.
This module is working on the old computer with Emacs 21, so I assume something has changed. The docs on emacswiki seem vague to a non-elisp programmer. (I can read elisp, and have written a few macros, but not an expert by any stretch.)
So, unless somebody knows of an alternative working PL/SQL mode that works with font-lock on 24, I'd like to start by looking at the font-lock settings, but I don't see any usable functions that start with font-lock- in the autocomplete list. How do I do this?
I made the change suggested by Stefan and moved the sql-mode line and got the same thing. The image is after running M-x font-lock-fontify-buffer
. New computer on left, old on right.
Plain SQL mode doesn't do anything different.
sql.el
that comes with Emacs seems to have support for highlighting PL/SQL keywords. Whether that was already present in Emacs-24, I cannot say but it's quite possible. Have you tried that? If yes, then please describe what you found missing from thatsql.el
support.sql.el
, I think Emacs-24'ssql-mode
should already highlight your code like you want. Tryemacs -Q .../test.pkb -f sql-mode
.