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

68 lines
2.6 KiB
EmacsLisp
Raw Normal View History

2023-02-06 16:26:37 +01:00
(use-package doom-themes
2023-02-13 12:11:42 +01:00
:init
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
2023-02-06 16:26:37 +01:00
(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/"
2023-09-10 19:41:38 +02:00
"~/sites/HyperSpec/")
"List of possible locations where the local HyperSpec could reside.")
2023-02-11 18:40:37 +01:00
(defun mk/find-dir (x)
2023-09-10 19:41:38 +02:00
"Recursively search for a valid directory from a list X of directories.
Returns the first valid directory, or nil if none found."
2023-02-11 18:40:37 +01:00
(cond ((null x) nil)
((file-directory-p (car x)) (car x))
(t (mk/find-dir (cdr x)))))
(defun mk/hyperspec-dir ()
2023-09-10 19:41:38 +02:00
"Finds and returns the URI of the local HyperSpec directory.
Uses `mk/hyperspec-dir-locations' to find the directory."
(let ((dir-prefix (if (eq system-type 'windows-nt)
"file:///" ; windows needs three slashes
"file://"))
2023-02-11 20:02:45 +01:00
(dir (mk/find-dir mk/hyperspec-dir-locations)))
(if dir
2023-09-10 19:41:38 +02:00
(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-24 22:05:34 +01:00
)
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")
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)