Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lean4-keybinding-* user options and dissolve other parts of lean4-settings.el #88

Open
mekeor opened this issue Nov 24, 2024 · 0 comments

Comments

@mekeor
Copy link
Collaborator

mekeor commented Nov 24, 2024

Lean4-Mode currently offers these variables:

(defcustom lean4-keybinding-std-exe1 (kbd "C-c C-x")
  "Main Keybinding for `lean4-std-exe'."
  :group 'lean4-keybinding :type 'key-sequence)
(defcustom lean4-keybinding-std-exe2 (kbd "C-c C-l")
  "Alternative Keybinding for `lean4-std-exe'."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-show-key (kbd "C-c C-k")
  "Lean Keybinding for `quail-show-key'."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-server-restart (kbd "C-c C-r")
  "Lean Keybinding for server-restart."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-tab-indent (kbd "TAB")
  "Lean Keybinding for `lean4-tab-indent'."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-auto-complete (kbd "S-SPC")
  "Lean Keybinding for auto completion."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-lean4-toggle-info (kbd "C-c C-i")
  "Lean Keybinding for `lean4-toggle-info'."
  :group 'lean4-keybinding  :type 'key-sequence)
(defcustom lean4-keybinding-lake-build (kbd "C-c C-p C-l")
  "Lean Keybinding for `lean4-lake-build'."
  :group 'lean4-keybinding :type 'key-sequence)
(defcustom lean4-keybinding-refresh-file-dependencies (kbd "C-c C-d")
  "Lean Keybinding for `lean4-refresh-file-dependencies'."
  :group 'lean4-keybinding :type 'key-sequence)

From an user perspective, these user-options feel out of place because they expect to change the default key bindings of a package by customizing the respective keymap directly. And from perspective of a Elisp developer working on Lean4-Mode, I'd also prefer to deal with a single keymap rather than above-mentioned user-options together with a function like lean4-set-keys that enables them. Thus, I propose to remove these user-options.

Secondly, I propose to completely dissolve the lean4-settings.el file, in the sense that each user-options that is defined there, should be moved to the Elisp file where it is used.

mekeor added a commit that referenced this issue Dec 8, 2024
Part of issue #88 "Remove lean4-keybinding-* user options and dissolve
other parts of
lean4-settings.el" (#88).
mekeor added a commit that referenced this issue Dec 8, 2024
Fixes issue #88 "Remove lean4-keybinding-* user options and dissolve
other parts of
lean4-settings.el"
(<#88>).
mekeor added a commit that referenced this issue Dec 10, 2024
Part of issue #88 "Remove lean4-keybinding-* user options and dissolve
other parts of
lean4-settings.el" (#88).
mekeor added a commit that referenced this issue Dec 10, 2024
Fixes issue #88 "Remove lean4-keybinding-* user options and dissolve
other parts of
lean4-settings.el"
(<#88>).
mekeor added a commit that referenced this issue Dec 12, 2024
Fixes issue #88 "Remove lean4-keybinding-* user options and dissolve
other parts of
lean4-settings.el"
(<#88>).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant