๋ด๊ฐ ์ด๋ฃจ๊ณ ์ถ์ ๊ฒ
์ํํธ๋ฅผ ๋๋ ๊ฒ์ด ์ด์ํ๊ธฐ ๋๋ฌธ์ ์
ํ ex ๋ช
๋ น์ ': w'์ ': q'์ ๋๋ฌธ์ ๋ฒ์ ์ ์ถ๊ฐํ๊ณ ์ถ์ต๋๋ค.
์ง๊ธ๊น์ง ์๋ํ์ต๋๋ค.
;;doom.d/config.el
(evil-ex-define-cmd "W" #'write)
;;doom.d/config.el
(after! evil
(evil-ex-define-cmd "W" #'write)
)
emacs๋ฅผ ๋ค์ ์์ํ๊ณ :W
์
๋ ฅ ํ ํ์๋ ๋ ๋ค ์ฌ์ ํ
์ ์์๋ ๋ช ๋ น : ''W "
๋๋ ๋ํ after! evil-ex
๋ฐ after! evil-ex-cmd
์๋ํ์ง๋ง ๊ธฐ์จ์ด ์์ต๋๋ค.
์์คํ
์ ๋ณด
((emacs
(๋ฒ์ . "26.2")
(๊ธฐ๋ฅ. "XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBS2")
(๋น๋. "2019 ๋
4 ์ 12 ์ผ")
(buildopts "--build = x86_64-linux-gnu --prefix = / usr '--includedir = $ {prefix} / include' '--mandir = $ {prefix} / share / man' '--infodir = $ {prefix} / share / info '--sysconfdir = / etc --localstatedir = / var --disable-silent-rules'--libdir = $ {prefix} / lib / x86_64-linux-gnu ''--libexecdir = $ {prefix} / lib / x86_64-linux-gnu '--disable-maintainer-mode --disable-dependency-tracking --prefix = / usr --sharedstatedir = / var / lib --program-suffix = 26- with-modules --with-file-notification = inotify --with-mailutils --with-x = yes --with-x-toolkit = gtk3 --with-xwidgets --with-lcms2 'CFLAGS = -g -O2 -fdebug-prefix-map = / build / emacs26-CYbeHB / emacs26-26.2 ~ 1.gitfd1b34b =. -fstack-protector-strong -Wformat -Werror = format-security -no-pie ''CPPFLAGS = -Wdate-time- D_FORTIFY_SOURCE = 2 ''LDFLAGS = -Wl, -B ๊ธฐํธ ํจ์ -Wl, -z, relro -no-pie ' "))
(์ด๋ช
(๋ฒ์ . "2.0.9")
(๋น๋. "HEAD-> ๊ฐ๋ฐ, ์ค๋ฆฌ์ง / ๊ฐ๋ฐ, ์ค๋ฆฌ์ง / HEAD a16838b7 2019-09-11 23:42:27 -0400"))
(์ฒด๊ณ
(. gnu / linux ์
๋ ฅ)
(config. "x86_64-pc-linux-gnu")
(์. "/ bin / bash")
(uname. "Linux 4.15.0-62-generic # 69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019 x86_64")
(๊ฒฝ๋ก "~ / .cargo / bin" "~ / bin" "~ / .local / bin" "/ usr / local / bin" "~ / .cargo / bin" "~ / .local / bin" "~ / bin ""/ usr / local / sbin ""/ usr / local / bin ""/ usr / sbin ""/ usr / bin ""/ sbin ""/ bin ""/ usr / games ""/ usr / local / games ""/ snap / bin ""~ / .fzf / bin ""/usr/lib/x86_64-linux-gnu/emacs/26.2/x86_64-linux-gnu "))
(๊ตฌ์ฑ
(envfile. envvar-file)
(elc-files. 0)
(๋ชจ๋ : Completion company ivy : ui doom doom-dashboard hl-todo modeline nav-flash ophints (popup + all + defaults) vc-gutter vi-tilde-fringe window-select workspaces : editor evil file-templates fold multiple-cursors rotate -text snippets : emacs dired electric vc : tools eval flycheck (lookup + docsets) magit : lang data emacs-lisp markdown (org + dragndrop + ipython + pandoc + present) python rest sh : config default)
(ํจํค์ง "org-caldav" "calfw" "calfw-org" "(ttl-mode : recipe (: host github : repo jeeger / ttl-mode))")
(elpa-packages "n / a")))
์ฒซ ๋ฒ์งธ ์ค ๋ํซ์ด ์ ํํฉ๋๋ค.
;;doom.d/config.el
(evil-ex-define-cmd "W" #'write)
๊ทธ๋ฌ๋ write
ํจ์๋ ์กด์ฌํ์ง ์์ต๋๋ค. ๋น์ ์ด ์ํ๋ ๊ฒ์ evil-write
:
;;doom.d/config.el
(evil-ex-define-cmd "W" #'evil-write)
๊ฐ์ฌํฉ๋๋ค! evil-ex-commands
์ ๊ฐ์น๋ฅผ ์๋ชป ์ดํดํ์ต๋๋ค.
...
("write" . evil-write)
("w" . "write")
...
์ฌ๊ธฐ w
๋ write
๋ฅผ ์ฐธ์กฐํ๋ ๊ฒ ๊ฐ์ต๋๋ค. evil-ex-define-cmd
๋ฅผ ํตํด ์ํ ํ ๋ ์๋ํ์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
์,์ด ๊ฒฝ์ฐ "write"
๋ ๋ฌธ์์ด์ด๊ณ #'write
๋ ๊ธฐํธ์ด๊ธฐ ๋๋ฌธ์
๋๋ค. evil-ex-define-cmd
๋ ๋ฌธ์์ด์ ์คํํ ex ๋ช
๋ น์ผ๋ก ์ทจ๊ธํ๊ณ ๊ธฐํธ๋ฅผ elisp ํจ์์ ๋ํ ์ฐธ์กฐ๋ก ์ทจ๊ธํฉ๋๋ค. ๋ค์์ ์ํํด์ผํฉ๋๋ค.
;;doom.d/config.el
(evil-ex-define-cmd "W" "write")
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์,์ด ๊ฒฝ์ฐ
"write"
๋ ๋ฌธ์์ด์ด๊ณ#'write
๋ ๊ธฐํธ์ด๊ธฐ ๋๋ฌธ์ ๋๋ค.evil-ex-define-cmd
๋ ๋ฌธ์์ด์ ์คํํ ex ๋ช ๋ น์ผ๋ก ์ทจ๊ธํ๊ณ ๊ธฐํธ๋ฅผ elisp ํจ์์ ๋ํ ์ฐธ์กฐ๋ก ์ทจ๊ธํฉ๋๋ค. ๋ค์์ ์ํํด์ผํฉ๋๋ค.