.emacs-mac 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. ;;; Slime/etc
  2. (setq inferior-lisp-program "/opt/homebrew/bin/sbcl")
  3. (load (expand-file-name "~/.local/opt/quicklisp/slime-helper.el"))
  4. ; Smooth mouse scroll a bit
  5. (setq mouse-wheel-scroll-amount '(1 ((shift) . 1) ((control) . nil)))
  6. (setq mouse-wheel-progressive-speed nil)
  7. ;; normal home/end behavior
  8. (global-set-key (kbd "<home>") 'beginning-of-line)
  9. (global-set-key (kbd "<end>") 'end-of-line)
  10. ;;; erc config
  11. (setq erc-nick "speskk")
  12. (defvar bootstrap-version)
  13. (let ((bootstrap-file
  14. (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
  15. (bootstrap-version 5))
  16. (unless (file-exists-p bootstrap-file)
  17. (with-current-buffer
  18. (url-retrieve-synchronously
  19. "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
  20. 'silent 'inhibit-cookies)
  21. (goto-char (point-max))
  22. (eval-print-last-sexp)))
  23. (load bootstrap-file nil 'nomessage))
  24. ;; packages to install and load
  25. (straight-use-package 'auto-complete)
  26. (straight-use-package '(nano-theme :type git :host github
  27. :repo "rougier/nano-theme"))
  28. ;;(straight-use-package
  29. ;; '(nano-emacs :type git :host github :repo "rougier/nano-emacs"))
  30. (straight-use-package
  31. '(slime-company :type git :host github :repo "anwyn/slime-company"))
  32. (straight-use-package 'sublimity)
  33. (straight-use-package 'dashboard)
  34. (straight-use-package 'all-the-icons)
  35. (straight-use-package 'neotree)
  36. (straight-use-package 'rust-mode)
  37. (straight-use-package 'powerline)
  38. (straight-use-package 'markdown-mode)
  39. (straight-use-package 'moe-theme)
  40. (straight-use-package 'ample-theme)
  41. (straight-use-package 'slime)
  42. (straight-use-package 'ac-slime)
  43. ;; Not enabled/required by default
  44. (straight-use-package 'evil)
  45. ;; always enable ido mode
  46. (require 'ido)
  47. (ido-mode t)
  48. (require 'evil)
  49. (evil-mode 1)
  50. ;; Enable tab behavior like vi
  51. (straight-use-package '(evil-tabs :type git :host github
  52. :repo "krisajenkins/evil-tabs"))
  53. (require 'auto-complete)
  54. (global-auto-complete-mode t)
  55. (require 'slime)
  56. (require 'ac-slime)
  57. (slime-setup '(slime-fancy ac-slime))
  58. (add-hook 'slime-mode-hook 'set-up-slime-ac)
  59. (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
  60. (eval-after-load "auto-complete"
  61. '(add-to-list 'ac-modes 'slime-repl-mode))
  62. (require 'markdown-mode)
  63. (require 'powerline)
  64. (powerline-default-theme)
  65. (require 'neotree)
  66. (global-set-key [f8] 'neotree-toggle)
  67. (require 'dashboard)
  68. (dashboard-setup-startup-hook)
  69. (require 'all-the-icons)
  70. (require 'sublimity-scroll)
  71. (require 'sublimity-map) ;; experimental
  72. (require 'sublimity-attractive)
  73. (setq sublimity-scroll-weight 10
  74. sublimity-scroll-drift-length 5)
  75. (setq sublimity-map-size 20)
  76. (setq sublimity-map-fraction 0.3)
  77. (setq sublimity-map-text-scale -7)
  78. (sublimity-map-set-delay 1)
  79. (setq sublimity-attractive-centering-width nil)
  80. (add-to-list 'default-frame-alist '(font . "Roboto Mono" ))
  81. (set-face-attribute 'default t :font "Roboto Mono" )
  82. (setq backup-directory-alist
  83. `((".*" . ,temporary-file-directory)))
  84. (setq auto-save-file-name-transforms
  85. `((".*" ,temporary-file-directory t)))
  86. ;(load-theme 'moe-light t)
  87. (load-theme 'nano t)
  88. (nano-dark)
  89. (display-time-mode t)
  90. (display-line-numbers-mode t)
  91. (custom-set-variables
  92. ;; custom-set-variables was added by Custom.
  93. ;; If you edit it by hand, you could mess it up, so be careful.
  94. ;; Your init file should contain only one such instance.
  95. ;; If there is more than one, they won't work right.
  96. '(custom-safe-themes
  97. '("01106ca9b4446341ecb86a76b9db48f1100e2eb13980aa0ec6f6adf8e69fd9a7" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "0feb7052df6cfc1733c1087d3876c26c66410e5f1337b039be44cb406b6187c6" default)))
  98. (custom-set-faces
  99. ;; custom-set-faces was added by Custom.
  100. ;; If you edit it by hand, you could mess it up, so be careful.
  101. ;; Your init file should contain only one such instance.
  102. ;; If there is more than one, they won't work right.
  103. )