diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-31 13:53:30 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-31 13:53:30 -0400 |
| commit | d5c85328293262ea4fd9293c5e77e4990952cdee (patch) | |
| tree | bdd469bebcf67fc118e7bdf13677e8e316ccdf50 | |
| parent | 358f0f229e63e731acfa84b619a411f509308160 (diff) | |
fix up frame parameters, indent, and more
| -rw-r--r-- | .config/emacs/completion-at-point.el | 9 | ||||
| -rw-r--r-- | .config/emacs/early-init.el | 28 | ||||
| -rw-r--r-- | .config/emacs/init.el | 5 | ||||
| -rw-r--r-- | .config/emacs/text-editing.el | 9 |
4 files changed, 35 insertions, 16 deletions
diff --git a/.config/emacs/completion-at-point.el b/.config/emacs/completion-at-point.el index 9793069..cc8f2d3 100644 --- a/.config/emacs/completion-at-point.el +++ b/.config/emacs/completion-at-point.el @@ -28,4 +28,13 @@ (completion-preview-minimum-symbol-length 2) (completion-preview-ignore-case t)) +(use-package cape + :ensure t + :demand t + :init + (add-hook 'completion-at-point-functions #'cape-dabbrev) + (add-hook 'completion-at-point-functions #'cape-file) + :config + (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)) + (setq completion-auto-help nil) diff --git a/.config/emacs/early-init.el b/.config/emacs/early-init.el index 13f3b5d..44df179 100644 --- a/.config/emacs/early-init.el +++ b/.config/emacs/early-init.el @@ -40,15 +40,26 @@ (lambda () (setq file-name-handler-alist my--old-file-name-handler-alist))) -;; configure frame parameters -(push '(menu-bar-lines . 0) default-frame-alist) -(push '(tool-bar-lines . 0) default-frame-alist) -(push '(vertical-scroll-bars) default-frame-alist) -(push '(horizontal-scroll-bars) default-frame-alist) +;; configure parameters for each frame created +(modify-all-frames-parameters + '((menu-bar-lines . 0) + (tool-bar-lines . 0) + (vertical-scroll-bars) + (horizontal-scroll-bars))) (setq menu-bar-mode nil tool-bar-mode nil scroll-bar-mode nil) +;; set fonts for each frame created +;; using font - https://github.com/thep0y/monaco-nerd-font/releases/tag/v0.2.2 +(defun my--set-font (frame) + (let ((mono-spaced-font "Monaco Nerd Font Mono") + (proportionately-spaced-font "MonacoLigaturized Nerd Font")) + (set-face-attribute 'default nil :family mono-spaced-font :height 110) + (set-face-attribute 'fixed-pitch nil :family mono-spaced-font :height 1.0) + (set-face-attribute 'variable-pitch nil :family proportionately-spaced-font :height 1.0))) +(add-hook 'after-make-frame-functions 'my--set-font) + ;; performance (setq frame-resize-pixelwise t frame-inhibit-implied-resize t @@ -74,12 +85,5 @@ (set-selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) -;; fonts - https://github.com/thep0y/monaco-nerd-font/releases/tag/v0.2.2 -(let ((mono-spaced-font "Monaco Nerd Font Mono") - (proportionately-spaced-font "MonacoLigaturized Nerd Font")) - (set-face-attribute 'default nil :family mono-spaced-font :height 105) - (set-face-attribute 'fixed-pitch nil :family mono-spaced-font :height 1.0) - (set-face-attribute 'variable-pitch nil :family proportionately-spaced-font :height 1.0)) - ;; native comp warnings (setq native-comp-async-report-warnings-errors 'silent) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 83db91d..8cf4218 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -42,6 +42,5 @@ ;; (loadc "evil.el") ;; (loadc "lang.el") -;; todo: minions for modeline, hl-line, terminal, capfs -;; skipped: diminish, ansi color and rainbow -;; delimiters, evil, rainbow, +;; todo: ultra scroll, dumb-jump, scroll-on-jump, hl-line, minions for modeline, terminal, fork theme and make some improvements +;; skipped: diminish, evil, rainbow delimiters diff --git a/.config/emacs/text-editing.el b/.config/emacs/text-editing.el index 48f07c5..a80f3a2 100644 --- a/.config/emacs/text-editing.el +++ b/.config/emacs/text-editing.el @@ -18,7 +18,7 @@ (use-package mwim :ensure t :bind (("C-a" . mwim-beginning) - ("C-e" . mwim-end-of-line))) + ("C-e" . mwim-end-of-line))) ;; expand keybind (use-package expand-region @@ -33,3 +33,10 @@ ;; delete selected region when you type new text (use-package delsel :hook (after-init . delete-selection-mode)) + +;; indent +(setq-default indent-tabs-mode nil) +(setq-default tab-width 4) +(add-hook 'c-mode-common-hook + (lambda () + (setq c-basic-offset 4))) |
