I've tried putting
(setq term-setup-hook 'vip-mode) in my .emacs file but this only seems to load the vip module and I have to manually call
vip-change-mode-to-vi and C-z doesn't work as an alias for that method.
What am I doing wrong here?
p.s. Please spare me any religious sentiments.
You answered your own question, really: you need to call
vip-change-mode-to-vi. EMACS is just a lisp interpreter with some glossy side-effects; if you want to always be in vip vi mode, call the function.
A couple things:
You should use
add-hook. What you're using will remove any other hooks.
(add-hook 'term-setup-hook ...)
Consider using a lambda expression to stick things together, as
(add-hook 'term-setup-hook (lambda () (vip-mode)))
That means you have one closure that you can put all this stuff into
(setq viper-mode t) (require 'viper)
(setq term-setup-hook 'vip-mode) (global-unset-key "\e\e") (put 'eval-expression 'disabled nil)
I also saw an entry elsewhere from someone who just added to their
I tried that, but the first time I started emacs with it, it prompted me with an "inhibit vip-mode something", to which I responded
n, and after that, subsequent startups wouldn't use
If really want to use
Emacs, I think you maybe like evil(a great vim emulation, the successor to Vimpulse and vim-mode).
If you want to know more about evil, you can Google
Emacs wiki evil.
Basic description: (after you have installed this package) With basic settings, this package will get in vim-mode at start up (also, you can change it).
You can use C-z to vim-mode, in this mode, you will also have other vim modes (normal insert visual ...), if you want to leave vim-mode to emacs mode, type C-z again.
Evil, really evil & cool!