starting a new
This commit is contained in:
commit
0557c8c3ee
|
@ -0,0 +1,8 @@
|
|||
*/.DS_STORE
|
||||
/elpa
|
||||
*.el~
|
||||
*.org~
|
||||
pillow-fort.el
|
||||
auto-save-list
|
||||
eshell
|
||||
.cache
|
|
@ -0,0 +1,46 @@
|
|||
;;; init.el --- Emacs init file
|
||||
;; Author: Eli Mellen
|
||||
;;; Commentary:
|
||||
;;; A lightweight Emacs config containing only the stuff I know how to use!
|
||||
;;; Code:
|
||||
(setq gc-cons-threshold 402653184
|
||||
gc-cons-percentage 0.6
|
||||
file-name-handler-alist-original file-name-handler-alist
|
||||
file-name-handler-alist nil
|
||||
site-run-file nil)
|
||||
|
||||
(add-hook 'emacs-startup-hook
|
||||
(lambda ()
|
||||
(setq gc-cons-threshold 20000000
|
||||
gc-cons-percentage 0.1
|
||||
file-name-handler-alist file-name-handler-alist-original)
|
||||
(makunbound 'file-name-handler-alist-original)))
|
||||
|
||||
(add-hook 'minibuffer-setup-hook (lambda () (setq gc-cons-threshold 40000000)))
|
||||
(add-hook 'minibuffer-exit-hook (lambda ()
|
||||
(garbage-collect)
|
||||
(setq gc-cons-threshold 20000000)))
|
||||
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||||
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
|
||||
(setq package-enable-at-startup nil)
|
||||
(package-initialize)
|
||||
|
||||
;; workaround bug in Emacs 26.2
|
||||
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
||||
|
||||
;; Setting up the package manager. Install if missing.
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
(eval-and-compile
|
||||
(setq use-package-always-ensure t))
|
||||
|
||||
;; Load main config file "./pillow-fort.org"
|
||||
(require 'org)
|
||||
(org-babel-load-file (expand-file-name "~/.emacs.d/pillow-fort.org"))
|
||||
|
||||
(provide 'init)
|
||||
;;; init.el ends here
|
|
@ -0,0 +1,42 @@
|
|||
#+Title: Pillow-Fort, an emacs config by Eli Mellen
|
||||
#+Author: Eli Mellen
|
||||
#+Date: 2019
|
||||
|
||||
* Fiddling with the basic UI of emacs
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq frame-title-format '("Cozy Pillow Fort")
|
||||
ring-bell-function 'ignore
|
||||
default-directory "~/")
|
||||
|
||||
(tool-bar-mode -1)
|
||||
(menu-bar-mode +1) ; I <3 menu bar
|
||||
(scroll-bar-mode -1)
|
||||
|
||||
;; Column number in mode-line
|
||||
(column-number-mode +1)
|
||||
|
||||
;; Silkier scrolling
|
||||
(setq scroll-margin 0
|
||||
scroll-conservatively 10000
|
||||
scroll-preserve-screen-position t
|
||||
auto-window-vscroll nil)
|
||||
|
||||
;; Increase line space for better readability
|
||||
(setq-default line-spacing 3)
|
||||
|
||||
;; Tabs are for monsters. No monsters are allowed in the pillow fort (defaults to 4 spaces).
|
||||
(setq-default indent-tabs-mode nil
|
||||
tab-width 4)
|
||||
#+END_SRC
|
||||
|
||||
* Override some default behaviors
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; Stop emacs from littering your file system with garbage
|
||||
(setq create-lock-files nil make-backup-files nil auto-save-default nil)
|
||||
|
||||
;; Play nice(er) with the X11 clipboard
|
||||
(setq select-enable-clipboard t)
|
||||
|
||||
;; Surpress the welcome screen
|
||||
(setq inhibit-startup-message t initial-scratch-message nil)
|
||||
#+END_SRC
|
Loading…
Reference in New Issue