summaryrefslogtreecommitdiff
path: root/mms-keyboard.org
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-13 16:56:56 +0200
committermms <michal@sapka.me>2024-06-13 16:56:56 +0200
commita6f933fe524f544ec02afe9bd08a1c8ee909c784 (patch)
tree49d24b95ffdab891b1e9442d045c192276814568 /mms-keyboard.org
parent11760041c7ebf7301e37f07e1e1a78bbdcc50a87 (diff)
feat: tidy up
Diffstat (limited to 'mms-keyboard.org')
-rw-r--r--mms-keyboard.org113
1 files changed, 0 insertions, 113 deletions
diff --git a/mms-keyboard.org b/mms-keyboard.org
index 32c5715..33320f8 100644
--- a/mms-keyboard.org
+++ b/mms-keyboard.org
@@ -11,28 +11,6 @@
#+HUGO_CUSTOM_FRONT_MATTER: :menu-abstract "evil mode, basic key bindings and misc"
#+EXPORT_FILE_NAME: keyboard
-* Evil mode
-
-I've been using Vim for a long time so those keybindings are a must.
-My last attempt to use Emacs failed as I decided to learn Emacs native keybindings.
-While those aren't *bad*, I much prefer the classic VIM style.
-This time I am starting with Evil so anything I add to this config will be configured with those bindings at day 1.
-
-#+BEGIN_SRC emacs-lisp
- (use-package evil
- :ensure t
- :init
- (setq evil-want-keybinding nil
- evil-vsplit-window-right t
- evil-split-window-below t
- evil-want-C-u-scroll t)
- :config
- (evil-mode 0))
-#+END_SRC
-
-#+RESULTS:
-: t
-
* Which key
WK adds a on-the-fly cheatsheet.
@@ -44,97 +22,6 @@ WK adds a on-the-fly cheatsheet.
(which-key-mode))
#+end_src
-* Evil Collection
-
-Evil Collection is a ready-made package of evil mode keybings for multiple packages.
-You can see the full list [[https://github.com/emacs-evil/evil-collection/tree/master/modes][on Github]].
-It saves me from doing /all that config/ by hand.
-It's also good that those bindings are kinda good actually.
-
-#+BEGIN_SRC emacs-lisp
-(use-package evil-collection
- :after evil
- :ensure t
- :config
- (evil-collection-init))
-#+END_SRC
-
-* General
-
-I use General to manage keybindings.
-People said it's good, and I have to find a downside.
-
-All those bindings here should be to moved dedicated sections, but for now they are here.
-
-#+BEGIN_SRC emacs-lisp
- (use-package general
- :ensure t
- :config
- (setq general-use-package-emit-autoloads t)
- (general-evil-setup))
-#+END_SRC
-
-I manage my packages via Elpaca.
-It has the amazing capability of loading the packages asynchronously, speeding up Emacs start.
-But this also means that order becomes a problem.
-I will define keybindings using =general-*= functions all over the place, and the package may not be loaded yet.
-To save myself the problem, just pause execution of the config until General is fully loaded.
-
-#+begin_src emacs-lisp
- (elpaca-wait)
-#+end_src
-
-* Basic keybindings
-
-I use =space= as my leader.
-It's a muscle memory back from when I first learned Vim.
-
-#+begin_src emacs-lisp
- (general-create-definer mms-leader-keys
- :states '(normal insert visual emacs)
- :keymaps 'override
- :prefix "SPC" ;; set leader
- :global-prefix "M-SPC")
-#+end_src
-
-I want to access my config /blazingly fast/[tm]
-
-#+begin_src emacs-lisp
- (mms-leader-keys
- "o c" '((lambda () (interactive) (find-file "~/.emacs.d/")) :wk "Open config dir"))
-#+end_src
-
-I also have a habit of wanting to quickly create new splits (/sigh/ windows) fast back from my Vim days.
-
-#+begin_src emacs-lisp
- (general-create-definer mms-split-mgt-keys
- :states '(normal visual)
- :keymaps 'override
- :prefix "s")
-
- (mms-split-mgt-keys
- ;; Window splits
- "s" '(evil-window-split :wk "Horizontal split window")
- "v" '(evil-window-vsplit :wk "Vertical split window")
- ;; Window motions
- "h" '(evil-window-left :wk "Window left")
- "j" '(evil-window-down :wk "Window down")
- "k" '(evil-window-up :wk "Window up")
- "l" '(evil-window-right :wk "Window right"))
-#+end_src
-
-And I have a few keybindings that are here for now.
-I'll move them to dedicated sections when I reach them.
-
-#+begin_src emacs-lisp
- (mms-leader-keys
- "c a" '(eglot-code-actions :wk "Code actions"))
-
-
-
-#+END_SRC
-
-
* Xah Lee Flykeys
#
#+begin_src emacs-lisp