emacs.d/bundle/bundle--customfile.el

66 lines
2.4 KiB
EmacsLisp
Raw Normal View History

2023-02-06 16:26:37 +01:00
(use-package doom-themes
:init (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(load-theme 'doom-one t))
2023-02-11 18:40:37 +01:00
(defvar mk/hyperspec-dir-locations
2023-02-11 20:02:45 +01:00
'("d:/visua/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
2023-02-11 18:40:37 +01:00
"~/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
"~/lisp-docs/HyperSpec-7-0/HyperSpec/"
"~/sites/HyperSpec/"))
(defun mk/find-dir (x)
(cond ((null x) nil)
((file-directory-p (car x)) (car x))
(t (mk/find-dir (cdr x)))))
(defun mk/hyperspec-dir ()
(let ((dir-prefix
(if (eq system-type 'windows-nt)
"file:///"
2023-02-11 20:02:45 +01:00
"file://"))
(dir (mk/find-dir mk/hyperspec-dir-locations)))
(if dir
(concat dir-prefix
(expand-file-name dir))
nil)))
2023-02-11 18:40:37 +01:00
(setq common-lisp-hyperspec-root (mk/hyperspec-dir))
2020-07-26 14:36:43 +02:00
;; OS SETTINGS
(when (eq system-type 'gnu/linux)
2020-11-25 21:26:37 +01:00
(setq custom-file "~/.emacs.d/bundle/custom_gnu.el"
2023-02-11 18:40:37 +01:00
browse-url-secondary-browser-function 'browse-url-firefox)
2022-12-12 17:27:46 +01:00
;; (setq ispell-hunspell-dict-paths-alist
;; '(("de_DE_frami" "~/Library/Spelling/de_DE_frami.aff")
;; ("en_US" "/usr/share/hunspell/en_US.aff")))
2023-02-11 18:40:37 +01:00
(defvar mk/slime-filename-translations "~/Documents/slime_filename_translations.el"))
2020-07-26 14:36:43 +02:00
(when (eq system-type 'windows-nt)
2022-04-12 14:39:25 +02:00
;; (add-to-list 'exec-path "C:/msys64/mingw64/bin")
;; (add-to-list 'exec-path "C:/msys64/usr/bin")
;; (setenv "PATH" (concat "C:\\msys64\\mingw64\\bin;" (getenv "PATH")))
;; (when (directory-name-p "c:/msys64/")
;; (setq ispell-program-name "c:/msys64/mingw64/bin/hunspell.exe"
;; mpv-executable "c:/msys64/mingw64/bin/mpv.exe"))
2023-02-11 20:02:45 +01:00
(setq custom-file "~/.emacs.d/bundle/custom_win32.el")
(setq org-babel-python-command "python")
(defvar mk/slime-filename-translations "d:/visua/Documents/slime_filename_translations.el")
2023-02-06 16:27:01 +01:00
;; (defun powershell (&optional buffer)
;; "Launches a powershell in buffer *powershell* and switches to it."
;; (interactive)
;; (let ((buffer (or buffer "*powershell*"))
;; (powershell-prog "C:\\Program Files\\PowerShell\\7\\pwsh.exe"))
;; (make-comint-in-buffer "shell" "*powershell*" powershell-prog)
;; (switch-to-buffer buffer)))
2021-05-04 22:26:55 +02:00
(when (string= (system-name) "EVG02667NB")
(cd "d:/opt")
2023-02-11 20:02:45 +01:00
(setq custom-file "~/.emacs.d/bundle/custom_win32_EVG02667NB.el")))
2020-07-26 14:36:43 +02:00
;; CUSTOM_FILE
(load custom-file :noerror)