Closed ghost closed 7 years ago
(turn-off-evil-mode) also no workie
Dialog between an emacs user and I
me: why is this not disabling evil-mode them maybe you need to require it? (doesn't give me any errors about requiring but ok I'll try that) them: first of all why are you even loading it just delete it me: because oh-my-emacs reinstalls it every time I uninstall it them: stop using that shit.
I would agree except 90% of oh-my-emacs I like except this-- why for any other reason than to perpetuate some tired joke about editor wars would you force this package to be installed? I can tell you that we're like 1% of people in the world who actually understand the concept of an editor war and I can also tell you I don't really think its all that funny and I don't want anything to do with it.... I just want to use something that will help me be productive.
Maybe I'm missing the point? But wouldn't it stand to reason that if you want to use vi commands that you would just use vi?
How to turn off
Add the following to custom.el
to turn off evil-mode
globally.
(evil-mode -1)
Same issue here , add this to custom.el seems not working, btw, the (menu-mode t) in custom.el not working too.
@messiahluo You'd better to load custom.el
right after other configuration files to make sure the setting not be overwritten. Do you mean the menu bar? if so, you can use (menu-bar-mode +1)
to enable it.
@xuchunyang sorry tha is a typo, I actually do not need the menu bar,
(menu-bar-mode t)
this line is in custom.el by default, but not working, I just point it out, what I really concern about is when I add (evil-mode -1)
in custom.el is not working, but I think it's getting evalled but not working because after this I have to M-x evil-mode
twice to disable evil.
@messiahluo According oh-my-emacs's documation How to disable an el-get package?, you can add :tangle no
to code blocks for setting packages related to evil, i.e., evil
, evil-leader
and evil-surround
.
@xuchunyang thx a lot! that's much better than just comment it out.
Thanks @xuchunyang !
added :tangle no and it didn't do anything ... tried adding a post-init hook to custom el to turn-off-evil-mode that was no workie ...
fix
➜ ~ cat ome-advanced.el.patch
1,16c1,16
< ;; (defun ome-evil-setup ()
< ;; ;; (define-key evil-insert-state-map (kbd "C-[") 'evil-force-normal-state)
< ;; (setq evil-auto-indent t)
< ;; (setq evil-regexp-search t)
< ;; (setq evil-want-C-i-jump t)
< ;; (mapc
< ;; (lambda (mode-hook)
< ;; (add-hook mode-hook 'turn-on-evil-mode))
< ;; '(text-mode-hook
< ;; prog-mode-hook
< ;; comint-mode-hook
< ;; conf-mode-hook))
< ;; (mapc
< ;; (lambda (mode-hook)
< ;; (add-hook mode-hook 'turn-off-evil-mode))
< ;; '(Info-mode-hook)))
---
> (defun ome-evil-setup ()
> ;; (define-key evil-insert-state-map (kbd "C-[") 'evil-force-normal-state)
> (setq evil-auto-indent t)
> (setq evil-regexp-search t)
> (setq evil-want-C-i-jump t)
> (mapc
> (lambda (mode-hook)
> (add-hook mode-hook 'turn-on-evil-mode))
> '(text-mode-hook
> prog-mode-hook
> comint-mode-hook
> conf-mode-hook))
> (mapc
> (lambda (mode-hook)
> (add-hook mode-hook 'turn-off-evil-mode))
> '(Info-mode-hook)))
18c18
< ;; (ome-install 'evil)
---
> (ome-install 'evil)
20,66c20,66
< ;; (defun ome-evil-leader-setup ()
< ;; (evil-leader/set-leader "<SPC>")
< ;; (unless (featurep 'helm)
< ;; (evil-leader/set-key
< ;; "e" 'find-file
< ;; "b" 'switch-to-buffer))
< ;; (eval-after-load "helm"
< ;; (progn
< ;; (require 'helm-projectile)
< ;; (evil-leader/set-key
< ;; "f" 'helm-for-files
< ;; "l" 'helm-locate
< ;; "y" 'helm-show-kill-ring
< ;; "t" 'helm-top
< ;; "m" 'helm-man-woman
< ;; "o" 'helm-occur
< ;; "j" 'helm-M-x
< ;; "e" 'helm-find-files
< ;; "b" 'helm-buffers-list
< ;; "h" 'helm-projectile-find-file
< ;; "r" 'helm-recentf
< ;; "H" 'helm-projectile)))
< ;; (eval-after-load "helm-ag"
< ;; (evil-leader/set-key
< ;; "a" 'helm-projectile-ag))
< ;; (eval-after-load "expand-region"
< ;; (progn
< ;; (setq expand-region-contract-fast-key "z")
< ;; (evil-leader/set-key "xx" 'er/expand-region)))
< ;; (eval-after-load "magit"
< ;; (evil-leader/set-key "g" 'magit-status))
< ;; (eval-after-load "quickrun"
< ;; (evil-leader/set-key "q" 'quickrun))
< ;; (eval-after-load "git-gutter-mode"
< ;; (evil-leader/set-key
< ;; "s" 'git-gutter:stage-hunk
< ;; "n" 'git-gutter:next-hunk
< ;; "p" 'git-gutter:previous-hunk))
< ;; (evil-leader/set-key
< ;; "k" 'kill-buffer
< ;; "d" 'dired
< ;; "z" 'repeat
< ;; "0" 'delete-window
< ;; "1" 'delete-other-windows
< ;; "2" 'split-window-below
< ;; "3" 'split-window-right)
< ;; (global-evil-leader-mode))
---
> (defun ome-evil-leader-setup ()
> (evil-leader/set-leader "<SPC>")
> (unless (featurep 'helm)
> (evil-leader/set-key
> "e" 'find-file
> "b" 'switch-to-buffer))
> (eval-after-load "helm"
> (progn
> (require 'helm-projectile)
> (evil-leader/set-key
> "f" 'helm-for-files
> "l" 'helm-locate
> "y" 'helm-show-kill-ring
> "t" 'helm-top
> "m" 'helm-man-woman
> "o" 'helm-occur
> "j" 'helm-M-x
> "e" 'helm-find-files
> "b" 'helm-buffers-list
> "h" 'helm-projectile-find-file
> "r" 'helm-recentf
> "H" 'helm-projectile)))
> (eval-after-load "helm-ag"
> (evil-leader/set-key
> "a" 'helm-projectile-ag))
> (eval-after-load "expand-region"
> (progn
> (setq expand-region-contract-fast-key "z")
> (evil-leader/set-key "xx" 'er/expand-region)))
> (eval-after-load "magit"
> (evil-leader/set-key "g" 'magit-status))
> (eval-after-load "quickrun"
> (evil-leader/set-key "q" 'quickrun))
> (eval-after-load "git-gutter-mode"
> (evil-leader/set-key
> "s" 'git-gutter:stage-hunk
> "n" 'git-gutter:next-hunk
> "p" 'git-gutter:previous-hunk))
> (evil-leader/set-key
> "k" 'kill-buffer
> "d" 'dired
> "z" 'repeat
> "0" 'delete-window
> "1" 'delete-other-windows
> "2" 'split-window-below
> "3" 'split-window-right)
> (global-evil-leader-mode))
68c68
< ;; (ome-install 'evil-leader)
---
> (ome-install 'evil-leader)
70c70
< ;; (ome-install 'evil-surround)
---
> (ome-install 'evil-surround)
This is really dumb, I uninstall evil/- and it reinstalls it. Not to mention its enabled on startup, I go to type evil-mode which enables it again, and I have to type evil-mode again to ACTUALLY disable it. totally broken how do I just disable it. enabled is split brained? I'd really rather not type it at all I switched to emacs to use macros not vim.
I'm only guessing here but: (evilmode 0) <-- is what I need to add to add to init.el to accomplish this? Not working.