|
From: | Jean Louis |
Subject: | Re: Using comment characters for specific major modes |
Date: | Sun, 6 Jun 2021 23:50:39 +0300 |
User-agent: | Mutt/2.0.7+183 (3d24855) (2021-05-28) |
* martin-kemp@brusseler.com <martin-kemp@brusseler.com> [2021-06-06 20:37]: > I understand better now, you try to set "cs" in the "let" using cond. > > > > Am still getting nil though. Have changed the code somewhat. (defun my-cs () (let* ((m 62) (n 69) (lena (- m (current-column))) (cs (cond ((eq major-mode 'emacs-lisp-mode) ";;") ((eq major-mode 'texinfo-mode) "@c") ((eq major-mode 'f90-mode) "!!") ((eq major-mode 'fortran-mode)"cc")))) cs)) (my-cs) ⇒ ";;" It works, as I turnedd on emacs-lisp mode. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |