Skip to content

Instantly share code, notes, and snippets.

@menzenski
Created August 16, 2021 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save menzenski/0b0710054e6b59dc8880067ab0664ba7 to your computer and use it in GitHub Desktop.
Save menzenski/0b0710054e6b59dc8880067ab0664ba7 to your computer and use it in GitHub Desktop.
Emacs init.el
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(menu-bar-mode -1)
(setq inihbit-startup-screen t)
(global-display-line-numbers-mode)
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("org" . "http://orgmode.org/elpa")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(use-package evil
:ensure t
:config
(evil-mode 1))
(use-package which-key
:ensure t
:config
(which-key-mode))
(use-package org
:ensure t
:config
(setq org-agenda-files (directory-files-recursively "~/org/" "\\.org$")
org-todo-keywords '((sequence "TODO(t!)" "WAITING(w@/!)" "|" "DONE(d!)" "CANCELLED(c!)" "DELEGATED(g@/!)"))))
(use-package toc-org
:ensure t
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
(use-package general
:ensure t
:config
(general-define-key
:states '(normal visual insert emacs)
:prefix "SPC"
:non-normal-prefix "M-SPC"
"TAB" '(switch-to-prev-buffer :which-key "previous-buffer")
"f" 'find-file
"a" 'org-agenda))
(use-package solarized-theme
:ensure t)
(load-theme 'solarized-dark t)
(use-package doom-modeline
:ensure t
:hook (after-init . doom-modeline-init))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(evil use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment