From 40d7cad79991339b660f5468d1cf9e273540caf8 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 15 Nov 2018 13:26:05 +1300 Subject: [PATCH] Fix installation instructions for emacs syntax highlighting, and a couple of typos --- etc/syntax/cylc-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/syntax/cylc-mode.el b/etc/syntax/cylc-mode.el index 7b7ff7701ce..31ebf31e0c3 100644 --- a/etc/syntax/cylc-mode.el +++ b/etc/syntax/cylc-mode.el @@ -8,7 +8,7 @@ ;; Place this file in a directory on your emacs load path (or symlink it) ;; e.g. ;; mkdir -p $HOME/.emacs.d/lisp -;; ln -s $CYLC_HOME/etc/cylc-mode.el ~/.emacs.d/lisp/ +;; ln -s $CYLC_HOME/etc/syntax/cylc-mode.el ~/.emacs.d/lisp/ ;; ;; and in your $HOME/.emacs file add the following lines: ;; @@ -38,7 +38,7 @@ (define-derived-mode cylc-mode fundamental-mode "suite.rc" "Major mode for editing Cylc suite definition files" - ;; Note: ordered according to reverse application precendence, where + ;; Note: ordered according to reverse application precedence, where ;; specification order for faces changes resultant highlighting ;; Assignment and dependency characters, but only outside of Jinja2 @@ -80,7 +80,7 @@ ;; All comments: standard ('# ... ') and Jinja2 ('{# ... #}') (font-lock-add-keywords nil - '(("#.*$" . font-lock-comment-face))) ;; in-line only, by precendece + '(("#.*$" . font-lock-comment-face))) ;; in-line only, by precedence ;; Stop interference. No regex lookarounds in Emacs Lisp; ugly workaround (font-lock-add-keywords nil '(("^#\\(\\([^{].{2}\\|.[^#]\\).*\\|.{0,1}\\)$"