Browse Source

Added a designated file for customsetvars

pull/2/head
Josh Wolfe 6 years ago
parent
commit
74fdbeef90
  1. 14
      .emacs.d/README.org
  2. 22
      .emacs.d/init.el
  3. 2
      .gitignore

14
.emacs.d/README.org

@ -39,7 +39,9 @@ buffer is blank by default. I also set =yes-or-no-p= so that I only have to pres @@ -39,7 +39,9 @@ buffer is blank by default. I also set =yes-or-no-p= so that I only have to pres
stead of typing =yes<RET>= when prompted. Use spaces instead of tabs. If I try and
input text with a visual selection it replaces the visual selection. Personally I'm
partial to Inconsolata (I like Fira as well) here I check if the font group is
installed before setting the font to stop any errors.
installed before setting the font to stop any errors. I also hate it when my init
file gets littered with crap like =custom-set-variables=. So I set a custom file for
all of this crap to go.
#+begin_src emacs-lisp :tangle yes
(setq inhibit-splash-screen t
@ -56,6 +58,8 @@ installed before setting the font to stop any errors. @@ -56,6 +58,8 @@ installed before setting the font to stop any errors.
(when (member "Inconsolata" (font-family-list))
(add-to-list 'default-frame-alist '(font . "Inconsolata-13" ))
(set-face-attribute 'default t :font "Inconsolata-13"))
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror)
#+end_src
Currently I'm using [[https://github.com/hlissner/emacs-doom-theme][doom themes]] (I usually swap between doom-one and doom-molokai
@ -387,3 +391,11 @@ with a flat structure rather rather than folder trees. @@ -387,3 +391,11 @@ with a flat structure rather rather than folder trees.
(setq auto-save-file-name-transforms '((".*" "~/.bak.emacs/auto/" t)))
#+end_src
** Tesing / The Lab
Here is stuff that is either under testing or not meant for the public eye.
#+begin_src emacs-lisp :tangle yes
(if (eq t (file-exists-p "~/.emacs.d/lisp/the-lab.el"))
(load-file "~/.emacs.d/lisp/the-lab.el"))
#+end_src

22
.emacs.d/init.el

@ -1,25 +1,3 @@ @@ -1,25 +1,3 @@
(package-initialize)
(org-babel-load-file "~/.emacs.d/README.org")
(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.
'(custom-safe-themes
(quote
("398f0209bfd642cf7a5e3e03bdc20db2822fd6746225a4bd99ccf9b26d3059d0" "9f3181dc1fabe5d58bbbda8c48ef7ece59b01bed606cfb868dd147e8b36af97c" "06dbcfac3705aaaa79e1a3264c6fd44ef0cf86ef5ed67930e4007e63a8c1e8ee" default)))
'(package-selected-packages
(quote
(ox-twbs company neotree spaceline web-mode use-package tablist smex s powerline php+-mode org-bullets magit let-alist ido-ubiquitous ido-complete-space-or-hyphen haskell-mode expand-region doom-themes ace-jump-mode))))
(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.
'(company-scrollbar-bg ((t (:background "#383d48"))))
'(company-scrollbar-fg ((t (:background "#2d313a"))))
'(company-tooltip ((t (:inherit default :background "#262931"))))
'(company-tooltip-common ((t (:inherit font-lock-constant-face))))
'(company-tooltip-selection ((t (:inherit font-lock-function-name-face)))))

2
.gitignore vendored

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
.emacs.d/lisp/the-lab.el
.emacs.d/custom.el
.emacs.d/README.el
.emacs.d/auto-save-list/
.emacs.d/elpa/

Loading…
Cancel
Save