mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-16 00:51:35 +09:00
alacritty update && emacs dap-mode add
This commit is contained in:
150
.config/alacritty/alacritty.toml
Normal file
150
.config/alacritty/alacritty.toml
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
#"window.opacity" = 0.75
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
draw_bold_text_with_bright_colors = true
|
||||||
|
|
||||||
|
[colors.bright]
|
||||||
|
black = "0x282a35"
|
||||||
|
blue = "0xcaa9fa"
|
||||||
|
cyan = "0x9aedfe"
|
||||||
|
green = "0x5af78e"
|
||||||
|
magenta = "0xff92d0"
|
||||||
|
red = "0xff6e67"
|
||||||
|
white = "0xe6e6e6"
|
||||||
|
yellow = "0xf4f99d"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "0x000000"
|
||||||
|
blue = "0xcaa9fa"
|
||||||
|
cyan = "0x8be9fd"
|
||||||
|
green = "0x50fa7b"
|
||||||
|
magenta = "0xff79c6"
|
||||||
|
red = "0xff5555"
|
||||||
|
white = "0xbfbfbf"
|
||||||
|
yellow = "0xf1fa8c"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "0x282a36"
|
||||||
|
foreground = "0xf8f8f2"
|
||||||
|
|
||||||
|
[env]
|
||||||
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
|
[font]
|
||||||
|
size = 16.0
|
||||||
|
|
||||||
|
[font.bold]
|
||||||
|
family = "Comic Shanns Mono Nerd Font"
|
||||||
|
style = "Bold"
|
||||||
|
|
||||||
|
[font.bold_italic]
|
||||||
|
family = "Comic Shanns Mono Nerd Font"
|
||||||
|
style = "Bold Italic"
|
||||||
|
|
||||||
|
[font.italic]
|
||||||
|
family = "Comic Shanns Mono Nerd Font"
|
||||||
|
style = "Italic"
|
||||||
|
|
||||||
|
[font.normal]
|
||||||
|
family = "Comic Shanns Mono Nerd Font"
|
||||||
|
style = "Regular"
|
||||||
|
|
||||||
|
[font.offset]
|
||||||
|
x = 0
|
||||||
|
y = 1
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "Paste"
|
||||||
|
key = "V"
|
||||||
|
mods = "Control|Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "Copy"
|
||||||
|
key = "C"
|
||||||
|
mods = "Control|Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "PasteSelection"
|
||||||
|
key = "Insert"
|
||||||
|
mods = "Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ResetFontSize"
|
||||||
|
key = "Key0"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "IncreaseFontSize"
|
||||||
|
key = "Equals"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "IncreaseFontSize"
|
||||||
|
key = "Plus"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "DecreaseFontSize"
|
||||||
|
key = "Minus"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "DecreaseFontSize"
|
||||||
|
key = "Minus"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "Paste"
|
||||||
|
key = "Paste"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "Copy"
|
||||||
|
key = "Copy"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ClearLogNotice"
|
||||||
|
key = "L"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
chars = "\f"
|
||||||
|
key = "L"
|
||||||
|
mods = "Control"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ScrollPageUp"
|
||||||
|
key = "PageUp"
|
||||||
|
mode = "~Alt"
|
||||||
|
mods = "Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ScrollPageDown"
|
||||||
|
key = "PageDown"
|
||||||
|
mode = "~Alt"
|
||||||
|
mods = "Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ScrollToTop"
|
||||||
|
key = "Home"
|
||||||
|
mode = "~Alt"
|
||||||
|
mods = "Shift"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ScrollToBottom"
|
||||||
|
key = "End"
|
||||||
|
mode = "~Alt"
|
||||||
|
mods = "Shift"
|
||||||
|
|
||||||
|
[scrolling]
|
||||||
|
history = 10000
|
||||||
|
|
||||||
|
[window]
|
||||||
|
title = "Alacritty"
|
||||||
|
|
||||||
|
[window.class]
|
||||||
|
general = "Alacritty"
|
||||||
|
instance = "Alacritty"
|
||||||
|
|
||||||
|
[window.padding]
|
||||||
|
x = 6
|
||||||
|
y = 6
|
||||||
@ -1,81 +0,0 @@
|
|||||||
env:
|
|
||||||
TERM: xterm-256color
|
|
||||||
|
|
||||||
window:
|
|
||||||
padding:
|
|
||||||
x: 6
|
|
||||||
y: 6
|
|
||||||
title: Alacritty
|
|
||||||
class:
|
|
||||||
instance: Alacritty
|
|
||||||
general: Alacritty
|
|
||||||
|
|
||||||
scrolling:
|
|
||||||
history: 10000
|
|
||||||
font:
|
|
||||||
normal:
|
|
||||||
family: Comic Shanns Mono Nerd Font
|
|
||||||
style: Regular
|
|
||||||
bold:
|
|
||||||
family: Comic Shanns Mono Nerd Font
|
|
||||||
style: Bold
|
|
||||||
italic:
|
|
||||||
family: Comic Shanns Mono Nerd Font
|
|
||||||
style: Italic
|
|
||||||
bold_italic:
|
|
||||||
family: Comic Shanns Mono Nerd Font
|
|
||||||
style: Bold Italic
|
|
||||||
# Point size
|
|
||||||
size: 16.0
|
|
||||||
offset:
|
|
||||||
x: 0
|
|
||||||
y: 1
|
|
||||||
draw_bold_text_with_bright_colors: true
|
|
||||||
# Colors (Dracula)
|
|
||||||
colors:
|
|
||||||
# Default colors
|
|
||||||
primary:
|
|
||||||
background: '0x282a36'
|
|
||||||
foreground: '0xf8f8f2'
|
|
||||||
|
|
||||||
# Normal colors
|
|
||||||
normal:
|
|
||||||
black: '0x000000'
|
|
||||||
red: '0xff5555'
|
|
||||||
green: '0x50fa7b'
|
|
||||||
yellow: '0xf1fa8c'
|
|
||||||
blue: '0xcaa9fa'
|
|
||||||
magenta: '0xff79c6'
|
|
||||||
cyan: '0x8be9fd'
|
|
||||||
white: '0xbfbfbf'
|
|
||||||
|
|
||||||
# Bright colors
|
|
||||||
bright:
|
|
||||||
black: '0x282a35'
|
|
||||||
red: '0xff6e67'
|
|
||||||
green: '0x5af78e'
|
|
||||||
yellow: '0xf4f99d'
|
|
||||||
blue: '0xcaa9fa'
|
|
||||||
magenta: '0xff92d0'
|
|
||||||
cyan: '0x9aedfe'
|
|
||||||
white: '0xe6e6e6'
|
|
||||||
window.opacity: 0.75
|
|
||||||
key_bindings:
|
|
||||||
# (Windows, Linux, and BSD only)
|
|
||||||
- { key: V, mods: Control|Shift, action: Paste }
|
|
||||||
- { key: C, mods: Control|Shift, action: Copy }
|
|
||||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
|
||||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
|
||||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
|
||||||
- { key: Plus, mods: Control, action: IncreaseFontSize }
|
|
||||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
|
||||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
|
||||||
|
|
||||||
- { key: Paste, action: Paste }
|
|
||||||
- { key: Copy, action: Copy }
|
|
||||||
- { key: L, mods: Control, action: ClearLogNotice }
|
|
||||||
- { key: L, mods: Control, chars: "\x0c" }
|
|
||||||
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
|
|
||||||
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
|
|
||||||
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
|
|
||||||
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
|
|
||||||
@ -108,6 +108,8 @@ Otherwise the startup will be very slow. "
|
|||||||
(require 'init-latex)
|
(require 'init-latex)
|
||||||
(require 'init-verilog)
|
(require 'init-verilog)
|
||||||
|
|
||||||
|
(require 'init-debug)
|
||||||
|
|
||||||
(require 'init-extra)
|
(require 'init-extra)
|
||||||
(require 'init-chatgpt)
|
(require 'init-chatgpt)
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
43
.config/emacs/lisp/init-debug.el
Normal file
43
.config/emacs/lisp/init-debug.el
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
;; init-debug -*- lexical-binding: t -*-
|
||||||
|
;; (use-package dap-mode
|
||||||
|
;; :config
|
||||||
|
;; (setq dap-cpptools-extension-version "1.5.1")
|
||||||
|
|
||||||
|
;; (with-eval-after-load 'lsp-rust
|
||||||
|
;; (require 'dap-cpptools))
|
||||||
|
|
||||||
|
;; ;; rust configuration
|
||||||
|
;; (with-eval-after-load 'dap-cpptools
|
||||||
|
;; ;; Add a template specific for debugging Rust programs.
|
||||||
|
;; ;; It is used for new projects, where I can M-x dap-edit-debug-template
|
||||||
|
;; (dap-register-debug-template "Rust::CppTools Run Configuration"
|
||||||
|
;; (list :type "cppdbg"
|
||||||
|
;; :request "launch"
|
||||||
|
;; :name "Rust::Run"
|
||||||
|
;; :MIMode "gdb"
|
||||||
|
;; :miDebuggerPath "rust-gdb"
|
||||||
|
;; :environment []
|
||||||
|
;; :program "${workspaceFolder}/target/debug/hello / replace with binary"
|
||||||
|
;; :cwd "${workspaceFolder}"
|
||||||
|
;; :console "external"
|
||||||
|
;; :dap-compilation "cargo build"
|
||||||
|
;; :dap-compilation-dir "${workspaceFolder}")))
|
||||||
|
|
||||||
|
;; (with-eval-after-load 'dap-mode
|
||||||
|
;; (setq dap-default-terminal-kind "integrated") ;; Make sure that terminal programs open a term for I/O in an Emacs buffer
|
||||||
|
;; (dap-auto-configure-mode +1)))
|
||||||
|
|
||||||
|
(use-package dap-mode
|
||||||
|
:config
|
||||||
|
;; Enabling only some features
|
||||||
|
(setq dap-auto-configure-features '(sessions locals controls tooltip))
|
||||||
|
(require 'dap-gdb-lldb)
|
||||||
|
(require 'dap-python)
|
||||||
|
;; configure debugger
|
||||||
|
(setq dap-python-debugger 'debugpy)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'init-debug)
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;; init-debug.el ends here
|
||||||
@ -154,9 +154,6 @@ prepended to the element after the #+HEADER: tag."
|
|||||||
:config
|
:config
|
||||||
(setq org-journal-dir (expand-file-name "journal/" org-directory))
|
(setq org-journal-dir (expand-file-name "journal/" org-directory))
|
||||||
(setq org-journal-file-type 'weekly))
|
(setq org-journal-file-type 'weekly))
|
||||||
(use-package calfw)
|
|
||||||
(use-package calfw-org
|
|
||||||
:after calfw)
|
|
||||||
|
|
||||||
;; Add new template
|
;; Add new template
|
||||||
(add-to-list 'org-structure-template-alist '("n" . "note"))
|
(add-to-list 'org-structure-template-alist '("n" . "note"))
|
||||||
@ -198,8 +195,8 @@ prepended to the element after the #+HEADER: tag."
|
|||||||
(rust . t)
|
(rust . t)
|
||||||
(C . t))
|
(C . t))
|
||||||
"Alist of org ob languages.")
|
"Alist of org ob languages.")
|
||||||
(unless ON-WINDOWS
|
;;(unless ON-WINDOWS
|
||||||
(add-to-list 'load-language-alist '(latex-as-png . t)))
|
;; (add-to-list 'load-language-alist '(latex-as-png . t)))
|
||||||
|
|
||||||
(push '("conf-unix" . conf-unix) org-src-lang-modes)
|
(push '("conf-unix" . conf-unix) org-src-lang-modes)
|
||||||
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
||||||
@ -428,5 +425,10 @@ prepended to the element after the #+HEADER: tag."
|
|||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))))
|
||||||
|
|
||||||
|
;; support calendar
|
||||||
|
(use-package calfw)
|
||||||
|
(use-package calfw-org
|
||||||
|
:after calfw)
|
||||||
(provide 'init-org)
|
(provide 'init-org)
|
||||||
;;; init-org.el ends here
|
;;; init-org.el ends here
|
||||||
|
|||||||
Reference in New Issue
Block a user