Emacs Config

What it adds

  • Magit: a tool for managing git in emacs.
    • Binds the `magit-status` command, which shows changes made in the repository, to Control-x g.
  • Orgmode: a markup language useful for note taking, todo lists and more.
  • pdf-tools: a tool for viewing pdfs in emacs.
  • Moe-theme: a visually appealing theme that changes based off of the time of day.
  • Moves emacs backups into a hidden folder for cleaner project directories.
  • Disables the scroll bar, toolbar and menu for a more minimalist look and feel.
  • Orgmode bullets: makes the orgmode headers look nicer.
(require 'package)
;; start server
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)


;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
        (package-install 'use-package))

(use-package magit
  :ensure t)

(use-package org
  :ensure t)

(use-package haskell-mode
  :ensure t)

(use-package exec-path-from-shell
  :ensure t)

(use-package pdf-tools
  :ensure t)

(use-package moe-theme
  :ensure t)

(require 'moe-theme-switcher)
(moe-theme-set-color 'purple)

(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)

(global-set-key "\C-ca" 'org-agenda)
(defalias 'list-buffers 'ibuffer)

;;(setq org-latex-create-formula-image-program 'imagemagick)
(setq backup-directory-alist
          `(("." . ,(concat user-emacs-directory "backups"))))

(load "term/vt100")
(setq org-clock-mode-line-total 'current)

(use-package org-bullets
  :ensure t
  (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))

(global-set-key (kbd "C-x g") 'magit-status)

Last updated: 2019-12-16 Mon