Browse Source

Updated emacs config

Simon Watson 3 years ago
parent
commit
336246dfbe
1 changed files with 33 additions and 4 deletions
  1. 33 4
      emacs/.emacs

+ 33 - 4
emacs/.emacs

@@ -14,21 +14,50 @@
       (eval-print-last-sexp)))
   (load bootstrap-file nil 'nomessage))
 
-;; packages to install
+;; packages to install and load
 (straight-use-package 'auto-complete)
-
 (straight-use-package '(nano-theme :type git :host github
                                    :repo "rougier/nano-theme"))
 (straight-use-package 'use-package)
-
+(straight-use-package 'org)
 (straight-use-package
  '(slime-company :type git :host github :repo "anwyn/slime-company"))
+(straight-use-package 'sublimity)
+(straight-use-package 'dashboard)
+(straight-use-package 'all-the-icons)
+(straight-use-package 'neotree)
+(straight-use-package 'rust-mode)
+(straight-use-package 'powerline)
+
+(require 'powerline)
+(powerline-default-theme)
+
+(require 'neotree)
+(global-set-key [f8] 'neotree-toggle)
+
+(require 'dashboard)
+(dashboard-setup-startup-hook)
 
 (require 'auto-complete)
+(require 'all-the-icons)
+
+(require 'sublimity-scroll)
+(require 'sublimity-map) ;; experimental
+(require 'sublimity-attractive)
+(setq sublimity-scroll-weight 10
+      sublimity-scroll-drift-length 5)
+(setq sublimity-map-size 20)
+(setq sublimity-map-fraction 0.3)
+(setq sublimity-map-text-scale -7)
+(sublimity-map-set-delay 1)
+(setq sublimity-attractive-centering-width nil)
 
 (add-to-list 'default-frame-alist '(font . "Roboto Mono" ))
 (set-face-attribute 'default t :font "Roboto Mono" )
 
-(setq backup-directory-alist `(("." . "~/.saves")))
+(setq backup-directory-alist
+      `((".*" . ,temporary-file-directory)))
+(setq auto-save-file-name-transforms
+      `((".*" ,temporary-file-directory t)))
 
 (load-theme 'nano t)