My Emacs Eye Candy

İsmail Efe Top


First of all, this post is directly inspired by Álvaro's work. I love his stuff and he has been a great inspiration for me. I suggest everyone to check out his stuff.

Image of my Emacs window

In this post I am planning to walk you through my visual Emacs setup, I will use the Doom Framework. I am planning on making a detail blog post about Emacs, org-mode and how I use them, because of this I will not go into explanation of what Emacs is. There are great sources about Emacs and org-mode on youtube. Until I make that post, you can explore the Emacs world freely.

Let's Start

Installing Homebrew

I will be using Homebrew to install Emacs and it's dependencies.

/bin/bash -c "$(curl -fsSL"

Installing Emacs

I am choosing the default cask for Emacs. I tried several different forks of mac Emacs but all of them gave me poor performance on my m2 macbook.

brew install --cask emacs

After installing do not start Emacs. Starting Emacs will create a profile, which will conflict with your doom profile.

Installing Doom

Doom is a stable framework for Emacs. You can considered like a base config file. It really makes Emacs usable out-of-box.

git clone --depth 1 ~/.config/emacs
~/.config/emacs/bin/doom install

And now we are ready to hack our Emacs.

Changing the theme

I used to use the doom-dracula theme. But nowadays my favorite is the kanagawa theme.

Add the below line to ~/.config/doom/package.el

(package! kanagawa-theme)

Then set your theme to kanagawa, for this put the below line in your config file ~/.config/doom/config.el

(setq doom-theme 'kanagawa)

Note: From now on all the code should go into your config file.

Changing the font

I like using the JetBrains Mono.

(setq doom-font (font-spec :family "JetBrains Mono" :size 22))

Enabling Word Count

This puts a word count in the modeline.

(setq doom-modeline-enable-word-count t)

Disabling hl-line-mode

'hl-line' makes the current line a different color. I don't like it.

(remove-hook 'doom-first-buffer-hook #'global-hl-line-mode)

The title bar

I like the look of an empty unified title-bar, so this removes the text. Only works for mac.

(setq ns-use-proxy-icon nil)
(setq frame-title-format nil)

Removing the tilde signs

There is an ugly tilde sign on empty lines by default. I really don't like it. You can remove it by commenting out the 'vi-tilde-fringe' line in ~/.config/doom/init.el

Olivetti Mode

There is a melpa package called olivetti. This package provides a good look for writing/reading by decreasing the width of the buffer.

You can install Olivetti by adding the below line to ~/.config/doom/package.el

(package! olivetti)

You can adjust the width like this

(setq olivetti-body-width 94)

Reading Mode

When writing or reading I like a couple of things different. I like to open up olivetti, disable the line numbers and the modeline. This function allows me to change these settings in one go. Also I have an undo function. I have them set to 'ö' and 'ç' as those keys are not used for any commands.

Reading Function:

(defun efe/reading-mode ()
  "Toggle reading mode."
  (hide-mode-line-mode +1)
(global-set-key (kbd "C-ö") 'efe/reading-mode)

Undo Function:

(defun efe/undo-reading-mode ()
  "undo reading mode."
  (hide-mode-line-mode -1)
  (setq olivetti-mode nil)
(global-set-key (kbd "C-ç") 'efe/undo-reading-mode)

Changing the Icon

Lastly, I like to use this Icon. It is quite old but it suits my style.

Home Mail Me RSS Source