.emacs-mac 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. (setq inferior-lisp-program "/opt/homebrew/bin/sbcl")
  2. (load (expand-file-name "~/.local/opt/quicklisp/slime-helper.el"))
  3. (slime-setup '(slime-fancy slime-company))
  4. (defvar bootstrap-version)
  5. (let ((bootstrap-file
  6. (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
  7. (bootstrap-version 5))
  8. (unless (file-exists-p bootstrap-file)
  9. (with-current-buffer
  10. (url-retrieve-synchronously
  11. "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
  12. 'silent 'inhibit-cookies)
  13. (goto-char (point-max))
  14. (eval-print-last-sexp)))
  15. (load bootstrap-file nil 'nomessage))
  16. ;; packages to install and load
  17. (straight-use-package 'auto-complete)
  18. (straight-use-package '(nano-theme :type git :host github
  19. :repo "rougier/nano-theme"))
  20. (straight-use-package 'use-package)
  21. (straight-use-package 'org)
  22. (straight-use-package
  23. '(slime-company :type git :host github :repo "anwyn/slime-company"))
  24. (straight-use-package 'sublimity)
  25. (straight-use-package 'dashboard)
  26. (straight-use-package 'all-the-icons)
  27. (straight-use-package 'neotree)
  28. (straight-use-package 'rust-mode)
  29. (straight-use-package 'powerline)
  30. (straight-use-package 'markdown-mode)
  31. (straight-use-package 'moe-theme)
  32. (straight-use-package 'ample-theme)
  33. (require 'markdown-mode)
  34. (require 'powerline)
  35. (powerline-default-theme)
  36. (require 'neotree)
  37. (global-set-key [f8] 'neotree-toggle)
  38. (require 'dashboard)
  39. (dashboard-setup-startup-hook)
  40. (require 'auto-complete)
  41. (global-auto-complete-mode t)
  42. (require 'all-the-icons)
  43. (require 'sublimity-scroll)
  44. (require 'sublimity-map) ;; experimental
  45. (require 'sublimity-attractive)
  46. (setq sublimity-scroll-weight 10
  47. sublimity-scroll-drift-length 5)
  48. (setq sublimity-map-size 20)
  49. (setq sublimity-map-fraction 0.3)
  50. (setq sublimity-map-text-scale -7)
  51. (sublimity-map-set-delay 1)
  52. (setq sublimity-attractive-centering-width nil)
  53. (add-to-list 'default-frame-alist '(font . "Roboto Mono" ))
  54. (set-face-attribute 'default t :font "Roboto Mono" )
  55. (setq backup-directory-alist
  56. `((".*" . ,temporary-file-directory)))
  57. (setq auto-save-file-name-transforms
  58. `((".*" ,temporary-file-directory t)))
  59. (load-theme 'moe-light t)
  60. (custom-set-variables
  61. ;; custom-set-variables was added by Custom.
  62. ;; If you edit it by hand, you could mess it up, so be careful.
  63. ;; Your init file should contain only one such instance.
  64. ;; If there is more than one, they won't work right.
  65. '(custom-safe-themes
  66. '("01106ca9b4446341ecb86a76b9db48f1100e2eb13980aa0ec6f6adf8e69fd9a7" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "0feb7052df6cfc1733c1087d3876c26c66410e5f1337b039be44cb406b6187c6" default)))
  67. (custom-set-faces
  68. ;; custom-set-faces was added by Custom.
  69. ;; If you edit it by hand, you could mess it up, so be careful.
  70. ;; Your init file should contain only one such instance.
  71. ;; If there is more than one, they won't work right.
  72. )