Skip to content

Instantly share code, notes, and snippets.

@andcarnivorous

andcarnivorous/config.el

Last active Aug 8, 2020
Embed
What would you like to do?
emacs config first lines
;;; Settings
;; (scroll-bar-mode -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(display-time-mode 1)
(display-battery-mode 1)
;(set-default-font "Terminus 18" nil t)
(defun lorem ()
"Insert a lorem ipsum."
(interactive)
(insert "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
"sed do eiusmod tempor incididunt ut labore et dolore "
"magnaaliqua. Ut enim ad minim veniam, quis nostrud "
"exercitation ullamco laboris nisi ut aliquip ex ea commodo "
"consequat. Duis aute irure dolor in reprehenderit in "
"voluptate velit esse cillum dolore eu fugiat nulla pariatur. "
"Excepteur sint occaecat cupidatat non proident, sunt in "
"culpa qui officia deserunt mollit anim id est laborum."))
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(setq package-list '(use-package fill-column-indicator flycheck rainbow-delimiters csv ac-ispell helm dash magit hungry-delete markdown-mode neotree olivetti org-bullets move-text package-build sos skewer-mode which-key mark-multiple))
(unless package-archive-contents
(package-refresh-contents))
(dolist (package package-list)
(unless (package-installed-p package)
(package-install package)))
(setq electric-pair-pairs '(
(?\( . ?\))
(?\[ . ?\])
(?\{ . ?\})
))
(electric-pair-mode t)
(use-package fill-column-indicator
:ensure t
:init
(add-hook 'prog-mode-hook 'fci-mode)
(setq fci-rule-column 120))
(require 'neotree)
(global-set-key [f1] 'shell)
(global-set-key [f2] 'neotree-toggle)
(global-set-key (kbd "C-x b") 'helm-buffers-list)
;; Which-Key config
(which-key-mode t)
(which-key-setup-side-window-bottom)
(setq which-key-idle-delay 0.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment