Clean up bqn-mode config

No need for maually changing the font, and ne need for customizing the
keymap if we use a US keyboard.
This commit is contained in:
Dimitri Lozeve 2023-12-11 21:01:54 +01:00
parent da2b061e4b
commit da4418292f

33
init.el
View file

@ -794,39 +794,10 @@
(("C-c d" . bqn-help-symbol-info-at-point) (("C-c d" . bqn-help-symbol-info-at-point)
("C-c C-d" . bqn-help-symbol-info-at-point) ("C-c C-d" . bqn-help-symbol-info-at-point)
("C-c C-c" . bqn-comint-send-dwim))) ("C-c C-c" . bqn-comint-send-dwim)))
:custom (bqn-key-prefix ?ù) :custom (bqn-key-prefix ?\\)
:config :config
(require 'bqn-keymap-mode) (require 'bqn-keymap-mode)
(defface bqn-default (require 'bqn-glyph-mode))
'((t (:height 140 :family "BQN386 Unicode"))) "BQN default face.")
(defun bqn-init ()
(setq buffer-face-mode-face 'bqn-default)
(buffer-face-mode))
(setq bqn-keymap-mode-reference
"
(AltGr)~ ¬ # { [ | ` ˜ \\ ^ @ ] }
1 ˘ 2 ¨ 3 4 5 ´ 6 ˝ 7 8 9 ¯ 0 ° + Backspace
² & é \" ˙ ' ( - ÷ è _ ç à ) = ×
Tab A Z E R 𝕣 T Y U I O P ¨ £ Enter
a z e r t y u i o p π ^ $
Caps Q S 𝕊 D F 𝔽 G 𝔾 H « J K L » M % µ
Lock q s 𝕤 d f 𝕗 g 𝕘 h j k l m ù *
Shift W 𝕎 X 𝕏 C V B N ? . / § Shift
w 𝕨 x 𝕩 c v b n , ; ⋄ │: · │! ⎉ │ │
Space:
")
(add-hook 'bqn-mode-hook 'bqn-init)
(add-hook 'bqn-comint-mode-hook 'bqn-init)
(add-hook 'bqn-keymap-mode-hook 'bqn-init))
(use-package graphviz-dot-mode (use-package graphviz-dot-mode
:straight t :straight t