Browse Source

More emacs configs

Simon Watson 3 năm trước cách đây
mục cha
commit
4c6653906a
2 tập tin đã thay đổi với 65 bổ sung0 xóa
  1. 0 0
      emacs/.emacs-mac
  2. 65 0
      emacs/.emacs-windows

+ 0 - 0
emacs/.emacs → emacs/.emacs-mac


+ 65 - 0
emacs/.emacs-windows

@@ -0,0 +1,65 @@
+;; (setq inferior-lisp-program "/opt/homebrew/bin/sbcl")
+;; (load (expand-file-name "~/.local/opt/quicklisp/slime-helper.el"))
+;; (slime-setup '(slime-fancy slime-company))
+
+
+(defvar bootstrap-version)
+(let ((bootstrap-file
+       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
+      (bootstrap-version 5))
+  (unless (file-exists-p bootstrap-file)
+    (with-current-buffer
+        (url-retrieve-synchronously
+         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
+         'silent 'inhibit-cookies)
+      (goto-char (point-max))
+      (eval-print-last-sexp)))
+  (load bootstrap-file nil 'nomessage))
+
+;; 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
+      `((".*" . ,temporary-file-directory)))
+(setq auto-save-file-name-transforms
+      `((".*" ,temporary-file-directory t)))
+
+(load-theme 'nano t)