From 69d52058c908652899d752dbc85debc28e8312d6 Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Mon, 18 Mar 2024 09:51:34 +0900 Subject: [PATCH] alacritty update && emacs dap-mode add --- .config/alacritty/alacritty.toml | 150 +++++++++++++++++++++++++++++++ .config/alacritty/alacritty.yml | 81 ----------------- .config/emacs/init.el | 2 + .config/emacs/lisp/init-debug.el | 43 +++++++++ .config/emacs/lisp/init-org.el | 12 +-- 5 files changed, 202 insertions(+), 86 deletions(-) create mode 100644 .config/alacritty/alacritty.toml delete mode 100644 .config/alacritty/alacritty.yml create mode 100644 .config/emacs/lisp/init-debug.el diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..eebf134 --- /dev/null +++ b/.config/alacritty/alacritty.toml @@ -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 diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml deleted file mode 100644 index 95ebcfe..0000000 --- a/.config/alacritty/alacritty.yml +++ /dev/null @@ -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 } diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 637af33..8b86da1 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -108,6 +108,8 @@ Otherwise the startup will be very slow. " (require 'init-latex) (require 'init-verilog) +(require 'init-debug) + (require 'init-extra) (require 'init-chatgpt) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/.config/emacs/lisp/init-debug.el b/.config/emacs/lisp/init-debug.el new file mode 100644 index 0000000..d6e39ba --- /dev/null +++ b/.config/emacs/lisp/init-debug.el @@ -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 diff --git a/.config/emacs/lisp/init-org.el b/.config/emacs/lisp/init-org.el index f46ce79..ed6f1fe 100644 --- a/.config/emacs/lisp/init-org.el +++ b/.config/emacs/lisp/init-org.el @@ -154,9 +154,6 @@ prepended to the element after the #+HEADER: tag." :config (setq org-journal-dir (expand-file-name "journal/" org-directory)) (setq org-journal-file-type 'weekly)) - (use-package calfw) - (use-package calfw-org - :after calfw) ;; Add new template (add-to-list 'org-structure-template-alist '("n" . "note")) @@ -198,8 +195,8 @@ prepended to the element after the #+HEADER: tag." (rust . t) (C . t)) "Alist of org ob languages.") - (unless ON-WINDOWS - (add-to-list 'load-language-alist '(latex-as-png . t))) + ;;(unless ON-WINDOWS + ;; (add-to-list 'load-language-alist '(latex-as-png . t))) (push '("conf-unix" . conf-unix) org-src-lang-modes) (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}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))) + +;; support calendar +(use-package calfw) +(use-package calfw-org + :after calfw) (provide 'init-org) ;;; init-org.el ends here