New answers tagged

2

Drew's answer correctly identifies the source of the error message, but there are some additional problems with the code. (defun yasm-calculate-indentation (oldfun) "Add the formatting for a few other keywords I like." (cond ((looking-at-p "section") 0) ; section ((looking-at-p "global") 0) ; global ((looking-at-p "extern") 0) ...


2

(advice-add :around #'asm-calculate-indentation #'yasm-calculate-indentation) should be (advice-add #'asm-calculate-indentation :around #'yasm-calculate-indentation) C-h f advice-add says: advice-add is a compiled Lisp function in `nadvice.el'. (advice-add SYMBOL WHERE FUNCTION &optional PROPS) Like `add-function' but for the function named SYMBOL....


Top 50 recent answers are included