.emacs-mac-old-bk 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. (straight-use-package 'dimmer)
  46. (straight-use-package 'magit)
  47. (straight-use-package 'diff-hl)
  48. (straight-use-package 'powerline-evil)
  49. ;; Git stuff
  50. (require 'magit)
  51. (require 'diff-hl)
  52. (global-diff-hl-mode)
  53. (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
  54. (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
  55. ;; Easily set cua mode on/off so that I don't have to
  56. ;; use shift+insert for paste on mac
  57. (global-set-key (kbd "C-c c") 'cua-mode)
  58. (require 'dimmer)
  59. (setq dimmer-fraction 0.4)
  60. (dimmer-mode t)
  61. ;; always enable ido mode
  62. (require 'ido)
  63. (ido-mode t)
  64. (require 'evil)
  65. (evil-mode 1)
  66. ;; Enable tab behavior like vi
  67. (straight-use-package '(evil-tabs :type git :host github
  68. :repo "krisajenkins/evil-tabs"))
  69. (require 'evil-tabs)
  70. (global-evil-tabs-mode t)
  71. (require 'auto-complete)
  72. (global-auto-complete-mode t)
  73. (require 'slime)
  74. (require 'ac-slime)
  75. (slime-setup '(slime-fancy ac-slime))
  76. (add-hook 'slime-mode-hook 'set-up-slime-ac)
  77. (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
  78. (eval-after-load "auto-complete"
  79. '(add-to-list 'ac-modes 'slime-repl-mode))
  80. (require 'markdown-mode)
  81. (require 'powerline)
  82. (powerline-default-theme)
  83. ;; Better powerline support for evil mode
  84. (require 'powerline-evil)
  85. (require 'neotree)
  86. (global-set-key [f8] 'neotree-toggle)
  87. (require 'dashboard)
  88. (dashboard-setup-startup-hook)
  89. (require 'all-the-icons)
  90. (require 'sublimity)
  91. (require 'sublimity-scroll)
  92. (require 'sublimity-map) ;; experimental
  93. (require 'sublimity-attractive)
  94. (setq sublimity-scroll-weight 10
  95. sublimity-scroll-drift-length 5)
  96. (setq sublimity-map-size 30)
  97. (setq sublimity-map-fraction 0.3)
  98. (setq sublimity-map-text-scale -5)
  99. (sublimity-map-set-delay nil)
  100. (setq sublimity-attractive-centering-width nil)
  101. ;(add-to-list 'default-frame-alist '(font . "GohuFont" ))
  102. ;(set-face-attribute 'default t :font "GohuFont" )
  103. (setq backup-directory-alist
  104. `((".*" . ,temporary-file-directory)))
  105. (setq auto-save-file-name-transforms
  106. `((".*" ,temporary-file-directory t)))
  107. ;(load-theme 'moe-light t)
  108. (if (display-graphic-p)
  109. (progn
  110. (load-theme 'nano t)
  111. (nano-dark))
  112. nil)
  113. ;; Allow M-up / M-down behavior to switch windows
  114. (windmove-default-keybindings 'meta)
  115. (display-time-mode t)
  116. (display-line-numbers-mode t)
  117. ;;; Custom commands
  118. (load "/Users/swatson/.emacs.d/.erc-auth.el")
  119. (defun connect-to-libera-erc () (interactive)
  120. (erc :server "irc.libera.chat" :port "6667"
  121. :nick "speskk" :password *libera-chat*))
  122. (custom-set-variables
  123. ;; custom-set-variables was added by Custom.
  124. ;; If you edit it by hand, you could mess it up, so be careful.
  125. ;; Your init file should contain only one such instance.
  126. ;; If there is more than one, they won't work right.
  127. '(custom-safe-themes
  128. '("27a1dd6378f3782a593cc83e108a35c2b93e5ecc3bd9057313e1d88462701fcd" "f703efe04a108fcd4ad104e045b391c706035bce0314a30d72fbf0840b355c2c" "c9ddf33b383e74dac7690255dd2c3dfa1961a8e8a1d20e401c6572febef61045" "01106ca9b4446341ecb86a76b9db48f1100e2eb13980aa0ec6f6adf8e69fd9a7" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "0feb7052df6cfc1733c1087d3876c26c66410e5f1337b039be44cb406b6187c6" default))
  129. '(diff-hl-margin-mode t)
  130. '(display-time-mode t)
  131. '(frame-background-mode 'dark))
  132. (custom-set-faces
  133. ;; custom-set-faces was added by Custom.
  134. ;; If you edit it by hand, you could mess it up, so be careful.
  135. ;; Your init file should contain only one such instance.
  136. ;; If there is more than one, they won't work right.
  137. '(default ((t (:family "CodingFontTobi" :foundry "nil" :slant normal :weight normal :height 181 :width normal)))))