.emacs-mac 3.2 KB

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