diff options
| author | tslil clingman <tslil@posteo.de> | 2024-01-28 20:34:27 +0100 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2024-01-28 20:34:27 +0100 |
| commit | f14dd89ab5d0a3376c0e4b74cb2ee7b4be3132a8 (patch) | |
| tree | 1694517df577f03d516eb45d050f4aabed934ba4 /emacs/inits | |
| parent | c037622d1dbefa2d263faed811ca07304c1414e5 (diff) | |
[emacs] add bqn abbrev table
Diffstat (limited to 'emacs/inits')
| -rw-r--r-- | emacs/inits/20-programming.el | 90 |
1 files changed, 88 insertions, 2 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el index 4ec41b6..ba69e8d 100644 --- a/emacs/inits/20-programming.el +++ b/emacs/inits/20-programming.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2024-01-23 22h05 CET (1c015732)> +;; Time-stamp: <2024-01-28 20h33 CET (anker)> ;; ----------------------------------------------------------------------------- ;; General setup @@ -342,4 +342,90 @@ :bind (:map bqn-mode-map ("C-c r r" . bqn-comint-eval-dwim) ("C-c r b" . bqn-comint-eval-buffer)) - :hook (bqn-mode . (lambda () (eglot-ensure)))) + :hook (bqn-mode . (lambda () (eglot-ensure) (abbrev-mode))) + :config + (define-abbrev-table 'bqn-mode-abbrev-table + '( ;; funtions + ("abs" "│") + ("and" "∧") + ("assert" "!") + ("ceiling" "⌈") + ("classify" "⊐") + ("couple" "≍") + ("deduplicate" "⍷") + ("depth" "≡") + ("deshape" "⥊") + ("dgrade" "⍒") + ("divide" "÷") + ("dsort" "∧") + ("enlist" "⋈") + ("floor" "⌊") + ("group" "⊔") + ("gt" ">") + ("gte" "≥") + ("indices" "/") + ("join" "∾") + ("left" "⊣") + ("length" "≠") + ("lshift" "«") + ("lt" "<") + ("lte" "≤") + ("match" "≡") + ("maximum" "⌈") + ("member" "∊") + ("minimum" "⌊") + ("modulus" "│") + ("multiply" "×") + ("neq" "≠") + ("nmatch" "≢") + ("not" "¬") + ("occurrence" "⊒") + ("or" "∨") + ("pair" "⋈") + ("pick" "⊑") + ("power" "⋆") + ("prefixes" "↑") + ("range" "↕") + ("recip" "÷") + ("replicate" "/") + ("reshape" "⥊") + ("reverse" "⌽") + ("right" "⊢") + ("root" "√") + ("rshift" "»") + ("select" "⊏") + ("shape" "≢") + ("sign" "×") + ("solo" "≍") + ("span" "¬") + ("sqrt" "√") + ("subtract" "─") + ("suffixes" "↓") + ("transpose" "⍉") + ("ugrade" "⍋") + ("usort" "∨") + ;; combinators + ("atop" "∘") + ("catch" "⎊") + ("choose" "◶") + ("constant" "˙") + ("lhook" "⊸") + ("over" "○") + ("rhook" "⟜") + ("self" "˜") + ("swap" "˜") + ("under" "⌾") + ("valences" "⊘") + ;; 1-modifiers + ("cells" "˘") + ("each" "¨") + ("fold" "´") + ("insert" "˝") + ("scan" "`") + ("table" "⌜") + ("undo" "⁼") + ;; 2-modifiers + ("depth" "⚇") + ("rank" "⎉") + ("repeat" "⍟") + ))) |
