Project

General

Profile

Actions

Emacs

Emacs is an extensible, customizable free text editor—and more.

There are several ways to do the syntax highlighting.

  1. Download the 50scol.el file written in (E)Lisp.
  2. Copy it in /etc/emacs/site-start.d/ directory
  3. Add this line in your .emacs file :
    (setq auto-mode-alist (cons '(*.pkg' . scol-mode) auto-mode-alist))

    This file is in your home directory (on GNU/Linux) or in the hard disk root (on MS Windows). Create it otherwise.
  4. Launch Emacs, you should read during the loading something like that :
    Loading /etc/emacs/site-start.d/50scol.el (source)...done
    
  5. Open a package (*.pkg) to verify

Updated by iri about 12 years ago · 1 revisions