New answers tagged

0

This is a modified version of @chen-bin's answer which uses a wrapper function instead of using advice (avoids interfering with other uses). It also generalizes the syntax checking to allow checking for other kinds of syntax. (defun company-complete-common-use-context () (interactive) (let ( (faces-found (face-at-point nil t)) (faces-...


1

Insert below code into ~/.emacs to enable company-ispell in comment, (defun my-in-comment-p (pos) "Check whether the code at POS is comment by comparing font face." (let* ((fontfaces (get-text-property pos 'face))) (if (not (listp fontfaces)) (setq fontfaces (list fontfaces))) (delq nil (mapcar #'(lambda (f) ...


Top 50 recent answers are included