First, obtain the newlisp-mode project:
~ /Work $ git clone https://github.com/may/newlisp-mode.git
Then in ~ /. Add the configuration in the emacs file:
; Newlisp mode (add-to-list 'Load-path (expand-file-name "/opt/emacs_plugins/newlisp-mode /")) (load-file "/opt/emacs_plugins/newlisp-mode/newlisp. el ") (add-to-list 'auto-mode-alist '("\\. LSP $ ". newlisp-mode); things that might make life easier :;; make Emacs '"speedbar" recognize newlisp files (eval-after-load "speedbar"' (speedbar-add-supported-extension ". LSP "));; another way to use C-X c-e to eval stuff and doesn' t jump to next function (define-key newlisp-mode-map [(control X) (control E)] 'newlisp-evaluate-Prev-sexp); I think I got tired of typing 'newlisp-show-interpreter 'all the time. (defun start-newlisp () "starts newlisp Interpreter/or shows if already running. requiresnewlisp-mode to be loaded. "(interactive) (newlisp-show-interpreter ))
(Add-to-list... must be added; otherwise, TJ-parenface cannot be found until an error is reported.
Open an LSP file with Emacs. The syntax is highlighted beautifully.