(set-variable 'load-path (cons "/home/logpro/emacs" load-path)) ;;; to find the CHIP mode file (autoload 'chip-mode "chip" "CHIP editing mode" t) ;;; use font-lock for all windows (global-font-lock-mode t) ;;; use font lock for chip mode only (add-hook 'chip-mode-hook 'turn-on-font-lock) ;;;(global-unset-key "\C-x\C-v") (global-set-key (quote [f5]) 'complete) (global-set-key (quote [f6]) 'find-tag) (global-set-key (quote [f7]) 'chip-describe) (global-set-key (quote [f10]) 'run-chip) ;;; recognize .pl files as Prolog, and not as Perl type (setq auto-mode-alist (append '(("\\.chip$" . chip-mode) ("\\.chp$" . chip-mode)) auto-mode-alist))