0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

emacs evil mode wo termux de

Last updated at Posted at 2020-12-18

2020.12.18
ここに記載した情報と直接は関係しませんが、アンドロイドのターミナルエミュレーターで日本語文字を入力するためのいく通りあるかわからない方法を探すのには時間がかかりますから、書いときます。
もしあなたが Termux で日本語入力をしたい場合 IME アプリ google 日本語入力または、オープンソースの mozc for Android を試してください。

Screenshot_20201227-223311.png

Termux vim (デフォルトの状態)and google IME
https://youtu.be/mZLDSxeXo1I

Screenshot_20201228-172213.png

Termux emacs Evil and mozc IME
https://youtu.be/JEnO2Mnh9bo


Emacs using Evil Mode on Android

1.install termux

termux
https://github.com/termux/termux-app/tree/android-10

then

apt update
apt upgrade

2.install emacs on termux (no need to root privilege, it means without sudo)

(eg: apt install emacs)

If you fail to fetch during installation
eg :
my case ...

Error reading from server - read (5: I/O error) [IP: 54.187.47.108 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I think you should switch termux repogitory default host to
mirror host.
Screenshot_20201220-174524_kindlephoto-71325254.png

Here is a hint
how to change repogitory

3.install git (eg: pkg install git)

IMG_20201218_194406_998.jpg

4. git clone

git clone https://github.com/emacs-evil/evil ~/.emacs.d/evil

Screenshot_20201218-191406.png

5. Edit ini.el file by emacs

eg:
~$ emacs ~/.emacs.d/init.el
IMG_20201218_194406_995.jpg

then,
copy and paste in emacs frame

(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)

as you can see
IMG_20201218_194407_000.jpg

6.type command (C = control key, M = Alt key)

type
C-x S
(emacs : press down control key + x then s , this combo is save command)
save
.emacs.d/init.el file
Screenshot_20201218-191758.png

type
M-x eval-buffer
(emacs : press down M = Alt key + x key , then type eval-buffer )

see emacs cheat sheet on duckduckgo

IMG_20201218_194407_011.jpg

7. Now <N> is vim mode = Evil mode

Emacs : <E>
Vim : <N>
Vim command ... you can search vim cheat sheet on duckduckgo
Use CTRL-z changing mode

IMG_20201218_194407_016.jpg

see youtube vid

Cf.
How to Navigate Emacs using Evil Mode
Updated Wednesday, October 7, 2020 , by Edward Angert
Link
https://www.linode.com/docs/guides/emacs-evil-mode/

Good guide about Evil
evil-guide by noctuid
Emacs/Evil for Vim Users
https://github.com/noctuid/evil-guide

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?