Skip to content

Instantly share code, notes, and snippets.



Last active Aug 8, 2020
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."
(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."))
(add-to-list 'package-archives
'("melpa" . "") 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
(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
(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)
(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