reddit / emacs

too inept to disable evil-mode in doom emacs

SmollBollBob · 2022-10-04 20:56
Hello, I'm trying to disable evil-mode in doom emacs because I don't know vim keybindings beyond hjkl, :wq, :e, and switching between modes. Although this is enough to do basic editing, I would like to learn emacs "the emacs way", as I'm not a vimmer. I'm just using doom emacs as a crutch while I get comfortable with emacs and lisp. ​ Anyway, I've tried the following: comment out `(evil +everywhere)` with two semi colons in "\~/.doom.d/init.el" ran doom sync added `(package! evil-mode :disable t)` to "packages.el" ran doom purge ran doom sync deleted `(evil +everywhere)` from "init.el" completely ran doom purge ran doom sync removed `+bindings` from `:config default` in "init.el" ran doom purge ran doom sync ​ I'm not sure what else I should try. ​ EDIT: rebooted my machine and evil is no more. Not sure at which point I could/should have rebooted but here we are.
Dr_Physics_ · 2022-10-04 21:05
https://github.com/doomemacs/doomemacs/issues/2240 Have you seen this?
SmollBollBob · 2022-10-04 21:10
Yes I have. I've done everything that is recommended there. Apparently I had to also reboot my machine, however, which was not suggested anywhere. But I suppose after years of using a computer, "turn it off and on again" should have come sooner than it did...
Dr_Physics_ · 2022-10-04 21:11
Haha at this point that’s always my first attempt at a fix. Glad you got it fixed though!
pandagoespoop · 2022-10-07 23:20
Spacemacs gives you the option of turning on/off vim keys on it's initial setup. You do the git clone, load emacs and it'll ask you which way you prefer :). That being said, I love vim keys. They just make so much sense when editing text. I watched a video that explained that the keys we type are words and we make sentences. Once you understand that, I'd say you can use vim. c - change - deletes the text and puts you in insert mode ready to type the replacement d - delete y - yank - which means it yanks the text into memory, it copies it. p - paste - paste the yanked text. i - inner a - The word 'a'. w - word Pop your cursor on a word, press escape and type dw and it'll delete the end of the word. Type diw to delete inner word, which means it'll delete the whole word, no matter where your cursor is. Type daw (delete a word) to delete the word and it's leading space. Then we can do things like ciw (change inner word) which will delete the word and put you into insert mode, so you can type a new word and replace it. We can also change all the text inside brackets with ci( and code blocks with ci{ and cip will change a whole paragraph. Some handy commands i - by it's self it enters insert mode, which means you can now actually type text. yiw - copy inner word p - paste diw - delete inner word - deletes a whole word, but leaves it's surrounding spaces. daw - delete a word - deletes the word and it's leading space. ciw - change inner word - deletes a whole word and puts us in insert mode. caw - change a word - deletes the word and it's leading space, and puts us in insert mode. ci( - change inside brackets (i can change this text) (to this) easily. ci{ - change inside brackets ci[ - change inside brackets di( - delete inside brackets dd - delete line yy - copy line pp - paste line / - search through your file for whatever you type in the prompt o - opens a new line underneath your cursor. a - also puts us into insert mode, but puts us one space after where the cursor is A - Append - puts us in insert mode at the end of a line. I - insert at the start of the line navigating b - move backwards by a word w - move forwards by a word That's all that I can think of, other than visual block select( ctrl-v ) and macros. To record a macro, press 'qa', do some text changes, press 'q' to stop recording, then press @a to repeat the changes you just made. press @@ to repeat the macro over and over. Oh and use arrows, hjkl is just laziness haha.