Browse Source

Some changes

master
Taylor Bockman 5 years ago
parent
commit
4e3f010dd9
  1. 4
      arch-configs/fresh_install.sh
  2. 13
      dotfiles/emacs.d/init.el
  3. 11
      dotfiles/emacs.d/package.el

4
arch-configs/fresh_install.sh

@ -13,7 +13,7 @@
# Update system # Update system
# #
sudo pacman -Syyu sudo pacman -Syyu
# Packages - Add stuff you want installed here # Packages - Add stuff you want installed here
# #
@ -37,6 +37,8 @@ YAY_PACKAGES=( "nordvpn-bin" # Nice manager for NordVPN \
"global" # GNU source tagging \ "global" # GNU source tagging \
"cmake" # CMake build system \ "cmake" # CMake build system \
"pyenv-virtualenv" \ "pyenv-virtualenv" \
"gnuradio" \
"gqrx" \
) )
# First install essential packages # First install essential packages

13
dotfiles/emacs.d/init.el

@ -158,6 +158,11 @@
(add-hook 'scheme-mode-hook #'aggressive-indent-mode) (add-hook 'scheme-mode-hook #'aggressive-indent-mode)
(add-hook 'clojure-mode-hook #'aggressive-indent-mode) (add-hook 'clojure-mode-hook #'aggressive-indent-mode)
;; Slime - requires SBCL to be installed in /usr/local/bin/ (default for the install.sh
;; script)
(setq inferior-lisp-program "/usr/local/bin/sbcl")
(setq slime-contribs '(slime-fancy))
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Save hooks ;; Save hooks
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
@ -182,14 +187,10 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(lisp-indent-function (quote common-lisp-indent-function))
'(package-selected-packages '(package-selected-packages
(quote (quote
(projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag))) (projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag))))
;; Not technically a mode but mode enough. This forces emacs to ident common lisp
;; like common lisp instead of like emacs lisp, which has unlimited else clauses in
;; the if statement (implicit progn) and as such indents it funny.
'(lisp-indent-function 'common-lisp-indent-function))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.

11
dotfiles/emacs.d/package.el

@ -1,6 +1,6 @@
(require 'cl) (require 'cl)
(defvar my-packages '(ag (defvar my-packages '(ag
;; Completion Frameworks ;; Completion Frameworks
company company
company-irony company-irony
@ -33,6 +33,7 @@
protobuf-mode protobuf-mode
python-mode python-mode
yaml-mode yaml-mode
slime
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
;; Cleanup ;; Cleanup
@ -49,7 +50,7 @@
;; Keeps things indented even when you don't want it to ;; Keeps things indented even when you don't want it to
aggressive-indent aggressive-indent
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;
;; UI ;; UI
fill-column-indicator fill-column-indicator
golden-ratio golden-ratio
@ -69,8 +70,8 @@
smex smex
projectile projectile
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
) )
"Packages to make sure are installed") "Packages to make sure are installed")
(defun my-packages-installed-p () (defun my-packages-installed-p ()
@ -85,5 +86,3 @@
(dolist (p my-packages) (dolist (p my-packages)
(when (not (package-installed-p p)) (when (not (package-installed-p p))
(package-install p)))) (package-install p))))

Loading…
Cancel
Save