asdfghasfg
This commit is contained in:
parent
ca2a287911
commit
0648d70635
|
@ -49,6 +49,20 @@
|
|||
#+begin_src emacs-lisp
|
||||
(electric-indent-mode 1)
|
||||
(electric-pair-mode 1)
|
||||
(setq c-basic-offset 2)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
#+end_src
|
||||
|
||||
** Show Whitespace
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq whitespace-display-mappings
|
||||
'((space-mark ?\ [?\u00B7] [?.])
|
||||
(tab-mark ?\t [?\u00BB ?\t])))
|
||||
|
||||
(global-whitespace-mode 1)
|
||||
|
||||
(add-hook 'before-save-hook 'whitespace-cleanup)
|
||||
#+end_src
|
||||
|
||||
** Rainbow Delimiters
|
||||
|
@ -111,6 +125,26 @@
|
|||
|
||||
* Package Management
|
||||
|
||||
** Ligatures
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defvar ligatures-MapleMono
|
||||
'("--" "---" "==" "===" "!=" "!==" "=!=" "=:=" "=/=" "<=" ">=" "&&" "&&&" "&=" "++" "+++"
|
||||
"***" ";;" "!!" "??" "?:" "?." "?=" "<:" ":<" ":>" ">:" "<>" "<<<" ">>>" "<<" ">>" "||" "-|"
|
||||
"_|_" "|-" "||-" "|=" "||=" "##" "###" "####" "#{" "#[" "]#" "#(" "#?" "#_" "#_(" "#:"
|
||||
"#!" "#=" "^=" "<$>" "<$" "$>" "<+>" "<+ +>" "<*>" "<* *>" "</" "</>" "/>" "<!--"
|
||||
"<#--" "-->" "->" "->>" "<<-" "<-" "<=<" "=<<" "<<=" "<==" "<=>" "<==>" "==>" "=>"
|
||||
"=>>" ">=>" ">>=" ">>-" ">-" ">--" "-<" "-<<" ">->" "<-<" "<-|" "<=|" "|=>" "|->" "<-"
|
||||
"<~~" "<~" "<~>" "~~" "~~>" "~>" "~-" "-~" "~@" "[||]" "|]" "[|" "|}" "{|" "[<" ">]"
|
||||
"|>" "<|" "||>" "<||" "|||>" "|||>" "<|>" "..." ".." ".=" ".-" "..<" ".?" "::" ":::"
|
||||
":=" "::=" ":?" ":?>" "//" "///" "/*" "*/" "/=" "//=" "/==" "@_" "__"))
|
||||
|
||||
(use-package ligature
|
||||
:config
|
||||
(ligature-set-ligatures 'prog-mode ligatures-MapleMono)
|
||||
(global-ligature-mode t))
|
||||
#+end_src
|
||||
|
||||
** Theme
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -133,6 +167,27 @@
|
|||
(setq recentf-exclude '("~/.emacs.d/.cache/treemacs-persist")))
|
||||
#+end_src
|
||||
|
||||
** Better M-x
|
||||
|
||||
*** Ivy Mode (Completions)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ivy
|
||||
:ensure t
|
||||
:hook (after-init . ivy-mode)
|
||||
:config
|
||||
(setq ivy-use-virtual-buffers t)
|
||||
(setq enable-recursive-minibuffers t))
|
||||
#+end_src
|
||||
|
||||
*** Amx Mode (Better Interface)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package amx
|
||||
:ensure t
|
||||
:hook (after-init . amx-mode))
|
||||
#+end_src
|
||||
|
||||
** Modeline
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -269,6 +324,27 @@
|
|||
(use-package vue-mode
|
||||
:config
|
||||
(setq mmm-submode-decoration-level 2))
|
||||
|
||||
(add-hook 'c-mode-hook 'hide-ifdef-mode)
|
||||
(add-hook 'c++-mode-hook 'hide-ifdef-mode)
|
||||
(setq hide-ifdef-initially t)
|
||||
(setq hide-ifdef-shadow 'font-lock-comment-face)
|
||||
|
||||
;; Load posframe for popups
|
||||
(use-package eldoc-box
|
||||
:ensure t)
|
||||
|
||||
(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t)
|
||||
(defun my/eldoc-box-post-frame-hook (frame)
|
||||
(modify-frame-parameters
|
||||
eldoc-box--frame
|
||||
`(
|
||||
(background-color . "white")
|
||||
(internal-border-width . ,1)
|
||||
)
|
||||
)
|
||||
)
|
||||
(add-hook 'eldoc-box-frame-hook #'my/eldoc-box-post-frame-hook)
|
||||
#+end_src
|
||||
|
||||
** Corfu Completions
|
||||
|
|
Loading…
Reference in a new issue