.emacs-mac 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. ;; '(nano-emacs :type git :host github :repo "rougier/nano-emacs"))
  24. (straight-use-package
  25. '(slime-company :type git :host github :repo "anwyn/slime-company"))
  26. (straight-use-package 'sublimity)
  27. (straight-use-package 'dashboard)
  28. (straight-use-package 'all-the-icons)
  29. (straight-use-package 'neotree)
  30. (straight-use-package 'rust-mode)
  31. (straight-use-package 'powerline)
  32. (straight-use-package 'markdown-mode)
  33. (straight-use-package 'moe-theme)
  34. (straight-use-package 'ample-theme)
  35. (straight-use-package 'slime)
  36. (straight-use-package 'ac-slime)
  37. ;; Not enabled/required by default
  38. (straight-use-package 'evil)
  39. (require 'evil)
  40. ;; Required, but not enabled by defaul
  41. (evil-mode 1)
  42. ;; Enable tab behavior like vi
  43. (straight-use-package '(evil-tabs :type git :host github
  44. :repo "krisajenkins/evil-tabs"))
  45. (require 'auto-complete)
  46. (global-auto-complete-mode t)
  47. (require 'slime)
  48. (require 'ac-slime)
  49. (slime-setup '(slime-fancy ac-slime))
  50. (add-hook 'slime-mode-hook 'set-up-slime-ac)
  51. (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
  52. (eval-after-load "auto-complete"
  53. '(add-to-list 'ac-modes 'slime-repl-mode))
  54. (require 'markdown-mode)
  55. (require 'powerline)
  56. (powerline-default-theme)
  57. (require 'neotree)
  58. (global-set-key [f8] 'neotree-toggle)
  59. (require 'dashboard)
  60. (dashboard-setup-startup-hook)
  61. (require 'all-the-icons)
  62. (require 'sublimity-scroll)
  63. (require 'sublimity-map) ;; experimental
  64. (require 'sublimity-attractive)
  65. (setq sublimity-scroll-weight 10
  66. sublimity-scroll-drift-length 5)
  67. (setq sublimity-map-size 20)
  68. (setq sublimity-map-fraction 0.3)
  69. (setq sublimity-map-text-scale -7)
  70. (sublimity-map-set-delay 1)
  71. (setq sublimity-attractive-centering-width nil)
  72. (add-to-list 'default-frame-alist '(font . "Roboto Mono" ))
  73. (set-face-attribute 'default t :font "Roboto Mono" )
  74. (setq backup-directory-alist
  75. `((".*" . ,temporary-file-directory)))
  76. (setq auto-save-file-name-transforms
  77. `((".*" ,temporary-file-directory t)))
  78. ;(load-theme 'moe-light t)
  79. (load-theme 'nano t)
  80. (display-time-mode t)
  81. (display-line-numbers-mode t)
  82. (custom-set-variables
  83. ;; custom-set-variables was added by Custom.
  84. ;; If you edit it by hand, you could mess it up, so be careful.
  85. ;; Your init file should contain only one such instance.
  86. ;; If there is more than one, they won't work right.
  87. '(custom-safe-themes
  88. '("01106ca9b4446341ecb86a76b9db48f1100e2eb13980aa0ec6f6adf8e69fd9a7" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "0feb7052df6cfc1733c1087d3876c26c66410e5f1337b039be44cb406b6187c6" default)))
  89. (custom-set-faces
  90. ;; custom-set-faces was added by Custom.
  91. ;; If you edit it by hand, you could mess it up, so be careful.
  92. ;; Your init file should contain only one such instance.
  93. ;; If there is more than one, they won't work right.
  94. )