Getting The Doom Emacs Look Without Doom Emacs

In this article, I’m going to show you how you can get a nice Doom emacs looks in your Emacs text editor without having to install the massive Doom Emacs package in its entirety. The doom Emacs program is a highly sophisticated configuration for Emacs that combines some of the best packages and customizations you could want. However, if you’re like me, you might prefer a more minimalist configuration, and only adding packages if you decide you really need them. In that case, follow along below to see how you (yes, you) can get the Doom emacs look without all the addditional baggage.

Phase 1: The Package Managers

First, make sure you have some package managers ready to go:

(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
                       ("nongnu" . "https://elpa.nongnu.org/nongnu/")
                       ("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
  (package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)

Phase 2: Set Some Style and Window Dressing

I like slightly bigger font, but you don’t have to use this:

(set-face-attribute 'default nil   :height 167)

And some preferred window styling and other configuration niceties:

(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(toggle-frame-maximized)
(setq inhibit-startup-message t
      initial-scratch-message nil
      ring-bell-function 'ignore
)
(setq make-backup-files nil)

Phase 3: Get the Doom Look

First, must install the doom themes, and load one:

(use-package doom-themes
:ensure t)
(load-theme 'doom-one)

Turn on the doom modeline:

(use-package doom-modeline
:ensure t)
(doom-modeline-mode)
(setq doom-modeline-hud nil)
(setq doom-modeline-buffer-encoding nil)
(setq doom-modeline-minor-modes nil)

Support for all the icons, to get the nice icons in the modeline:

(use-package all-the-icons
  :ensure t)

And be sure to run the command to install the fonts:

M-x all-the-icons-install-fonts

Phase Final: Thy Flesh Consumed

It’s time to sit back and enjoy your Doom look, and, at the same time, a minimal Emacs configuration.

Be the first to comment

Leave a Reply

Your email address will not be published.


*