5.7 KiB
emacs
- Buffer
- M-X
- Index (Packages)
One of the most important tools of every Arco-Linux distribution. Emacs is a plain text editor, that can be expanded with various packages. Some Packages and their usage is listed here. In most cases not the sole emacs is used, but the server version (local server) of emacs. The server runs at boot but can be evoked by running:
emacs --daemon
To start a second daemon you have to give a specific name to the second instance so emacs knows which server to address. This is done via the command:
emacs --daemon=<name of server>
To use the text editor (emacs) use the command to start a client:
emacsclient -cn <name of document>
The -c flag suggests emacs to open a new frame (so the use of emacs and the document is not blocked for other members (e.g. in ssh). The -n Flag suggest not to wait for emacs to close, so the prompt is given back to the shell. For emacs in Terminal mode (for ssh purposes) use the -t flag instead of the -n flag. To use emacsclient as command interpreter, use the -e flag:
emacsclient -e ('kill-emacs') #kills the emacs process
To use a different emacs server (has to be running) use the -s flag and give the name of the daemon
emacsclient -ct -s <name of daemon>
Emacs uses commands to change its behavior or simply do things. Those commands use command keys like control (c- ), alt (m- ) or space (s- ) . To use a command press the command. If pressed a minibuffer opens, there all possible commands are listed. For Example, to save your work use the command chain control x control s (c-x c-s). You can keep the control key pressed and simply press the next chain key.
Buffer
Emacs works with so called buffers. A buffer is an instance that can hold text (e.g. a text document or a menu. to switch between opened buffers that are running in the server instance use c-m-j. If you close amecsclient while the server is running, the buffer is not closed but still exist in the buffer list. you can close a buffer (switch focus, unsaved changtes are still there) by pressing c-0 or kill a buffer (like closing for real, unsaved changes are gone) by pressing c-k. you can have more than one buffer in view at the same time. To view a second buffer side by side press c-x c-3. To view them top-down press c-x c-2. To close a buffer that is not in focus press c-x c-1 (instead of closing the one in focus with c-x c-0.
A sub category are minibuffers. Those can pop up for notifications, menus or other things. They do not take the whole screen.
M-X
There are things that do not have a keychain attached to them. To acitvate those (or all) commands you have to use the M-x command prompt. Press m-x and type the name of the command you want to use. For example:
M-x package-install <name of package> ;;installs a package in emacs
Index (Packages)
key menu (invoked by colon or space)
hydra
additional menues for emacs buffers.
Gcal Calendar
org-gcal
Google calendar intergration for org buffers.
Tex
PDF-View
Navigation
neotree
Visualizes the File tree in a buffer (interactive).
dired
Simple File Browser in a minibuffer.
deft
Strong File Searcher for defined folders. Especialy good with roam home folder.
projectile
File managemant for project folders and files of same type.
Programme launcher
counsel-linux-app
Change the behaviour of M-x minibuffer.
File System
org-attach
Attach files to a org heading and categorize the entry.
Website Scraper
org-web-tools
Extract files and text from websites.
Helm
helm-org-rifle
Strong file and text search engine for org files.
helm-bibtex
helm search engine integration for literature and bibtex entries.