add shortcuts and windows stuff

This commit is contained in:
James Dixon 2025-05-08 19:16:17 -04:00
parent 46597ad5aa
commit 111472e825
2 changed files with 16 additions and 0 deletions

View File

@ -91,6 +91,7 @@
(if (eq system-type 'windows-nt)
(set-frame-font "Cascadia Code 12" nil t))
;; Have to change emacs init dir for Windows
;; https://emacs.stackexchange.com/a/12886
;; (setenv "HOME" "C:/Users/itzja")
;; (setq default-directory "C:/Users/user")

View File

@ -83,6 +83,7 @@
(setq recentf-max-menu-items 15)
(setq recentf-auto-cleanup (if (daemonp) 300 'never))
(global-set-key (kbd "C-x C-r") 'recentf)
(global-set-key (kbd "C-c i") (lambda () (interactive) (find-file user-init-file)))
;; `savehist-mode' is an Emacs feature that preserves the minibuffer history
;; between sessions.
@ -617,6 +618,20 @@
(gptel-make-gemini "Gemini" :stream t :key gptel-api-key)
(gptel-make-openai "OpenAI" :stream t :key gptel-api-key)
;;; Platform Specifics
;; for Win32
(if (eq system-type 'windows-nt)
(set-frame-font "Cascadia Code 12" nil t))
;; Have to change emacs init dir for Windows
;; https://emacs.stackexchange.com/a/12886
;; (setenv "HOME" "C:/Users/itzja")
;; (setq default-directory "C:/Users/user")
;; (setq user-init-file "C:/Users/user/.emacs.d/init.el")
;; (setq user-emacs-directory "C:/Users/user/.emacs")
;; (load user-init-file)
;;; init.el ends here
(custom-set-variables
;; custom-set-variables was added by Custom.