Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-03-16 10:27:56 +09:00
7 changed files with 93 additions and 6 deletions

View File

@ -4,7 +4,6 @@
(defun custom-setup-fonts ()
"setup fonts..."
(when (display-graphic-p)
;; default font
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
"Source Code Pro" "DejaVu Sans Mono")
@ -33,10 +32,21 @@
when (font-installed-p font)
return (progn
(setq face-font-rescale-alist `((,font . 1.00)))
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font))))))
(custom-setup-fonts)
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))
(when (display-graphic-p)
(custom-setup-fonts))
(add-hook 'window-setup-hook #'custom-setup-fonts)
(if (daemonp)
(add-hook 'after-make-frame-functions
(lambda (frame)
;; (setq doom-modeline-icon t)
(with-selected-frame frame
(custom-setup-fonts))))
(custom-setup-fonts))
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
;; select theme
(setq custom-theme-sel 'doom-one)
;; default transparency (85 . 85) or (100 . 100)

View File

@ -7,6 +7,17 @@
(setq gptel-model "gpt-4o-mini")
(setq gptel-api-key custom-chatgpt-my-key))
(use-package org-ai
:straight t
:ensure t
:commands (org-ai-mode
org-ai-global-mode)
:init
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
(org-ai-global-mode) ; installs global keybindings on C-c M-a
:config
(setq org-ai-default-chat-model "gpt-4") ; if you are on the gpt-4 beta:
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
(provide 'init-chatgpt)
;;; init-chatgpt.el ends here

View File

@ -5,5 +5,9 @@
:ensure t)
;; :hook (prog-mode . copilot-mode))
(use-package copilot-chat
:straight (:host github :repo "chep/copilot-chat.el" :files ("*.el"))
:after (request org markdown-mode shell-maker))
(provide 'init-copilot)
;;; init-copilot.el ends here

View File

@ -27,9 +27,7 @@
:straight t
:ensure t
:init
(if (display-graphic-p)
(load-theme custom-theme-sel t)
(load-theme 'doom-gruvbox t))
(load-theme custom-theme-sel t)
:config
(doom-themes-visual-bell-config))
(use-package doom-modeline

37
.minttyrc Normal file
View File

@ -0,0 +1,37 @@
# Dracula
ForegroundColour=248,248,242
BackgroundColour=40,42,54
Black=0,0,0
BoldBlack=104,104,104
Red=255,85,85
BoldRed=255,110,103
Green=80,250,123
BoldGreen=90,247,142
Yellow=241,250,140
BoldYellow=244,249,157
Blue=202,169,250
BoldBlue=202,169,250
Magenta=255,121,198
BoldMagenta=255,146,208
Cyan=139,233,253
BoldCyan=154,237,254
White=191,191,191
BoldWhite=230,230,230
Font=ComicShanns Nerd Font
FontHeight=12
Term=xterm-256color
Locale=ko_KR
Charset=UTF-8
FontSmoothing=default
AllowBlinking=no
BoldAsFont=no
CursorType=block
CursorBlinks=yes
BellTaskbar=no
BellType=0
BellFlash=no
FontWeight=400
FontIsBold=no
Transparency=medium

21
scripts/install_fonts.ps1 Normal file
View File

@ -0,0 +1,21 @@
pushd c:\tools
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}
$files = Get-ChildItem .\*.zip
mkdir Fonts
foreach($file in $files){
unzip -o $file -d .\Fonts
}
cp Fonts\*.ttf c:\windows\fonts
cp Fonts\*.otf c:\windows\fonts
popd

View File

@ -0,0 +1,6 @@
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}