Skip to content

Instantly share code, notes, and snippets.

@airicbear
Created May 25, 2020 01:45
Show Gist options
  • Save airicbear/26d874cd380206e4d97db8e42f415b04 to your computer and use it in GitHub Desktop.
Save airicbear/26d874cd380206e4d97db8e42f415b04 to your computer and use it in GitHub Desktop.
Example Emacs configuration

DocView Resolution

(setq doc-view-resolution 192)

Evil

(unless (package-installed-p 'evil)
  (package-install 'evil))

(require 'evil)
(evil-mode 1)

Fonts

 (add-to-list 'default-frame-alist
		 '(font . "JetBrains Mono-13"))

Hide GUI

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

Hide welcome screen

(setq inhibit-startup-screen t)

Julia

(setq inferior-julia-program-name "~/.local/applications/julia-1.3.0/bin/julia")
(require 'julia-repl)
(add-hook 'julia-mode-hook 'julia-repl-mode)

Mode Line

(column-number-mode 1)

Org agenda

(setq org-log-done 'time)

Org babel

(org-babel-do-load-languages
 'org-babel-load-languages
 '((gnuplot . t)
   (julia . t)))

Org export

(setq org-html-checkbox-type 'html)

Org preview LaTeX

(plist-put org-format-latex-options :scale 3)

Scratch buffer

(setq initial-scratch-message "")

Tabs

(setq-default indent-tabs-mode nil)
(setq tab-width 4)
(setq indent-line-function 'insert-tab)

YASnippet

(add-to-list 'load-path
             "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(org-babel-load-file (expand-file-name "config.org" user-emacs-directory))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment