aboutsummaryrefslogtreecommitdiff
path: root/editors/emacs
AgeCommit message (Collapse)Author
2021-10-01Emacs support moved to external repositoryMarshall Lochbaum
2021-09-27Add ? to editor highlightingMarshall Lochbaum
2021-09-26emacs/bqn-symbols.el: properly escape bracketssternenseemann
() and [] are part of elisp syntax, so they should be escaped in character literals (but don't have to). This change fixes a warning I missed previously.
2021-09-26emacs: use char for the key in bqn--symbolssternenseemann
This makes sure the assumption that the string only ever contains a single character holds a priori (or otherwise we'll run into a failure at eval time). Not strictly necessary, but a small code improvement?
2021-09-26emacs/bqn-backslash.el: key-sequence is never a liststernenseemann
Reflect changes of 46e810ac94dbdccecd1f03e0ce073e2268453c61 for bqn-input in bqn-backslash.
2021-09-26emacs/bqn-input.el: don't add broken bindings in the BQN mode mapsternenseemann
Using a plain space in emacs key binding syntax can be problematic (especially making users unable to type "s" if the mode map prefix is "s-"). Therefore we must make sure to convert the strings we have in bqn-symbols.el into proper emacs key syntax. Luckily we can use single-key-description to do exactly that.
2021-09-26emacs/bqn-input.el: key-sequence is never a liststernenseemann
This is a small refactor removing sort-of-dead code. This of course removes the possibility to define multiple keys for a certain BQN character, but I'm not sure this is an actual use case we need to preserve.
2021-09-26emacs/bqn-symbols.el: fix mapping for spacesternenseemann
The “key” needs to be the plain ASCII space instead of "SPC". With this change, space works properly for both the BQN-Z input mode and the modifier-based mode-map. Thanks to Leah Neukirchen for pointing this out.
2021-09-04emacs/bqn-input.el: fix reliance on undefined vars und functionssternenseemann
bqn--make-bqn-mode-map depended on the value of bqn-mode-map-prefix, but bqn-mode-map-prefix's set function also used bqn--make-bqn-mode-map. To break this cycle which made emacs' warnings act up a bit, we remove bqn--make-bqn-mode-map and defvar bqn--mode-map to nil initially, trusting that it'll be correctly re-defined by the initialization of bqn-mode-map-prefix via its set function. I verified that this works correctly both in the case of the initial value (although I swapped out the value for "M-" beforehand since in my setup Super doesn't seem to work at all) and redefining it using costumize-variable.
2021-09-04emacs/bqn-input.el: make defcustom docstring max-width happysternenseemann
A docstring wider than 80 characters causes a warning when compiling which isn't too much trouble to clean up.
2021-09-04emacs/bqn-input.el: define bqn--make-key-command-sym at compile timesternenseemann
When byte compiling bqn--make-key-command-sym wouldn't be defined when it's used in make-insert-functions directly below. This can be fixed by forcing the defun to be evaluated at compile-time using eval-and-compile while still making sure it is also available when loaded normally.
2021-08-25Change emacs ligature sequence from s- to s-SPC, fixing broken s and ‿ inputMarshall Lochbaum
2021-02-11Separate prefixed input from main fileMarshall Lochbaum
2021-02-11Use cl-lib instead of clMarshall Lochbaum
2021-02-07Emacs syntax highlighting; fails for '"' and '#' (#10)Marshall Lochbaum
2021-02-06Add keymap support for BQN in Emacs (#10)Marshall Lochbaum