diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2022-11-26 16:41:11 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-11-26 16:41:11 +0100 |
| commit | e919c6e55c091c360d708295f9f832f896d3a457 (patch) | |
| tree | 57ae07cf08f6d05b3a1d389c0820d4364f0ae51a | |
| parent | b890bfb76aea8df253c5baf3a95df008b67dd1dc (diff) | |
Support function completion following ##
| -rw-r--r-- | llama.el | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -133,6 +133,16 @@ It also looks a bit like #\\='function." (seq-doseq (elt data) (llama--collect elt args))))) +(defun llama--expect-function-p (fn pos) + (or (and (eq (char-before pos) ?#) + (eq (char-before (- pos 1)) ?#)) + (and (eq (char-before pos) ?\s) + (eq (char-before (- pos 1)) ?#) + (eq (char-before (- pos 2)) ?#)) + (funcall fn pos))) + +(advice-add 'elisp--expect-function-p :around #'llama--expect-function-p) + ;;; _ (provide 'llama) ;; Local Variables: |
