Emacs - Basic Setup
01/01/2026, ThuAdding a couple of plugins into emacs will help you become more productive in emacs. The tree view and syntax highlighting are two important functionalities that I deemed to be the essential in having in your code editor of choice.
To get started, we will need to add the Melpa repository to our emacs init.el file to get access to additional packages.
(require 'package)
(add-to-list 'package-archives
'
("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
Restart emacs to register the new configuration with
# The ```M``` corresponds to the alt key
M-x restart-emacs
To add a tree view, add the neotree package.
# RET is the enter key
M-x package-install RET neotree RET
Activate neotree after installation with
M-x neotree
The initial focus will be in the tree panel on the left. Use your cursor to move to the file you want to open and press enter.
To shift focus back to the tree from the editor pane, use
# The C corresponds to the ctrl key
C-x o
To hide the neotree panel
M-x neotree-hide
To show the neotree panel
M-x neotree-show
Next, install the colors theme into your terminal application (konsole, iterm, etc.). A theme that has wide compatibility with many terminal applications that I recommend is nord. You will also need to add this theme into emacs.
Finally, you can add a syntax highlighting package of your choice depending on the programming that you choose to use.