Q: how do I highlight in emacs
Kalle Svensson
kalle at gnupung.net
Tue Nov 7 11:26:06 EST 2000
On Tue, 7 Nov 2000, Henrik MÃ¥rtensson wrote:
> I'm wondering how I can highlight the python syntax in emacs 20.7 (win nt)
Install python-mode. Then, you can run the command
font-lock-fontify-buffer to highlight the buffer.
Or, you could set up emacs to always use syntax highlighting. The relevant
parts of my .emacs (both syntax highlight and python-mode):
;;;;;;;;;;;;; 8< ; cut here ; 8< ;;;;;;;;;;;;;;;;;;
;; Enable syntax highlighting
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
;; Enable Python mode
(setq auto-mode-alist
(cons '("\\.py$" . python-mode)
auto-mode-alist))
(setq interpreter-mode-alist
(cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
;;;;;;;;;;;;; >8 ; cut here ; >8 ;;;;;;;;;;;;;;;;;;
Peace,
Kalle
--
Email: kalle at gnupung.net | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
Not signed due to logistical difficulties (I'm not at home).
If you doubt the authenticity of this message, please tell me.
More information about the Python-list
mailing list