editor/parinfer: refactor
This commit is contained in:
parent
54c67eb29e
commit
80295728d8
1 changed files with 8 additions and 7 deletions
|
@ -23,6 +23,8 @@
|
||||||
:i "<backtab>" #'parinfer-smart-tab:dwim-left
|
:i "<backtab>" #'parinfer-smart-tab:dwim-left
|
||||||
:localleader
|
:localleader
|
||||||
"m" #'parinfer-toggle-mode))
|
"m" #'parinfer-toggle-mode))
|
||||||
|
|
||||||
|
|
||||||
(use-package! parinfer-rust-mode
|
(use-package! parinfer-rust-mode
|
||||||
:when (featurep! +rust)
|
:when (featurep! +rust)
|
||||||
:when (bound-and-true-p module-file-suffix)
|
:when (bound-and-true-p module-file-suffix)
|
||||||
|
@ -34,13 +36,12 @@
|
||||||
hy-mode) . parinfer-rust-mode)
|
hy-mode) . parinfer-rust-mode)
|
||||||
:init
|
:init
|
||||||
(setq parinfer-rust-library
|
(setq parinfer-rust-library
|
||||||
(concat user-emacs-directory
|
(concat doom-etc-dir "parinfer-rust/"
|
||||||
".local/etc/parinfer-rust/"
|
(cond (IS-MAC "parinfer-rust-darwin.so")
|
||||||
(cond ((eq system-type 'darwin) "parinfer-rust-darwin.so")
|
(IS-LINUX "parinfer-rust-linux.so")
|
||||||
((eq system-type 'gnu/linux) "parinfer-rust-linux.so")
|
(IS-WINDOWS "parinfer-rust-windows.dll")
|
||||||
((eq system-type 'windows-nt) "parinfer-rust-windows.dll")
|
(IS-BSD "libparinfer_rust.so")))
|
||||||
((eq system-type 'berkeley-unix) "libparinfer_rust.so"))))
|
parinfer-rust-auto-download (not IS-BSD))
|
||||||
(setq parinfer-rust-auto-download (if (eq system-type 'berkeley-unix) nil t))
|
|
||||||
:config
|
:config
|
||||||
(map! :map parinfer-rust-mode-map
|
(map! :map parinfer-rust-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue