From: Eric L. <Eri...@ma...> - 2010-06-08 12:20:53
|
Hi, This is an issue with the Emacs configuration for font-lock. If you examine the doc for this variable with C-h v: font-lock-maximum-decoration It shows that if you set it to t, it will use higher levels of font locking. Matlab.el uses this variable to highlight only a minimal amount of stuff with the default configuration. Eric -----Original Message----- From: aptenom Lv [mailto:ap...@gm...] Sent: Friday, June 04, 2010 12:47 PM To: mat...@li... Subject: [Matlab-emacs-discuss] Syntax Highlight doesn't work well Hello everyone, I am new to Matlab/emacs, and I really appreciate the work. After the installation, I find that the syntax highlight is a little weird. In the function body, only the comments and a few keywords(such as if, else, etc) are colored. It is not very convenient to view and edit long codes. I read Mike's post on mathworks.com, but have no idea how to config the emacs to have the full syntax highlight. PS: I use emacs22 on debian lenny, and I added this lines to my .emacs. (add-to-list 'load-path "~/.emacs.d/plugins/matlab-emacs") (require 'matlab-load) and it does enter matlab-fill mode when I edit .m files. Thank you. aptenom 2010.6.5 ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |