Compare commits
3 Commits
6660451dff
...
5e795aef6d
Author | SHA1 | Date | |
---|---|---|---|
5e795aef6d | |||
8c7fc2ddb5 | |||
957124d2c8 |
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(setq gc-cons-threshold (* 8 5000 5000))
|
||||||
|
|
||||||
(defun display-startup-echo-area-message ()
|
(defun display-startup-echo-area-message ()
|
||||||
"A re-definition of the function.
|
"A re-definition of the function.
|
||||||
Tell the Emacs startup time and number of garbage-collections
|
Tell the Emacs startup time and number of garbage-collections
|
||||||
|
12
init.el
12
init.el
@ -10,8 +10,6 @@
|
|||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(setq gc-cons-threshold (* 8 5000 5000))
|
|
||||||
|
|
||||||
(setq load-prefer-newer t) ; why ever use stale code, ever?
|
(setq load-prefer-newer t) ; why ever use stale code, ever?
|
||||||
;; Load the files that I put my settings in...
|
;; Load the files that I put my settings in...
|
||||||
(defvar mir-directory
|
(defvar mir-directory
|
||||||
@ -306,6 +304,16 @@ If the current window occupies the whole frame, split it."
|
|||||||
;; (list '+elpaca-unload-eldoc 'elpaca--activate-package)))
|
;; (list '+elpaca-unload-eldoc 'elpaca--activate-package)))
|
||||||
;; (elpaca eldoc :build (+elpaca-eldoc-build-steps))
|
;; (elpaca eldoc :build (+elpaca-eldoc-build-steps))
|
||||||
|
|
||||||
|
(elpaca compat)
|
||||||
|
(elpaca marginalia (marginalia-mode))
|
||||||
|
(elpaca gcmh (gcmh-mode))
|
||||||
|
(elpaca page-break-lines
|
||||||
|
(add-hook 'emacs-lisp-mode-hook #'page-break-lines-mode))
|
||||||
|
(elpaca rainbow-mode
|
||||||
|
(add-hook 'prog-mode-hook #'rainbow-mode))
|
||||||
|
(elpaca powershell
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.ps1\\'" . powershell-mode)))
|
||||||
|
|
||||||
(elpaca elpaca-use-package
|
(elpaca elpaca-use-package
|
||||||
(elpaca-use-package-mode)
|
(elpaca-use-package-mode)
|
||||||
(setq elpaca-use-package-by-default t))
|
(setq elpaca-use-package-by-default t))
|
||||||
|
@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
;; (use-package no-littering) ;a bad start, and we need more
|
;; (use-package no-littering) ;a bad start, and we need more
|
||||||
|
|
||||||
(use-package compat)
|
|
||||||
|
|
||||||
;; diminish
|
;; diminish
|
||||||
(use-package diminish
|
(use-package diminish
|
||||||
:config (diminish 'visual-line-mode))
|
:config (diminish 'visual-line-mode))
|
||||||
@ -20,10 +18,6 @@
|
|||||||
:custom (default-input-method "japanese")
|
:custom (default-input-method "japanese")
|
||||||
:config (require 'mir-keybinds))
|
:config (require 'mir-keybinds))
|
||||||
(elpaca-wait)
|
(elpaca-wait)
|
||||||
(use-package gcmh
|
|
||||||
:diminish
|
|
||||||
:init (gcmh-mode))
|
|
||||||
|
|
||||||
(use-package eldoc-box
|
(use-package eldoc-box
|
||||||
:after eldoc
|
:after eldoc
|
||||||
:diminish (eldoc-mode eldoc-box-hover-at-point-mode)
|
:diminish (eldoc-mode eldoc-box-hover-at-point-mode)
|
||||||
@ -262,8 +256,6 @@ behaviour. Delete the frame after that command has exited"
|
|||||||
(general-define-key
|
(general-define-key
|
||||||
[remap switch-to-buffer] 'consult-buffer))
|
[remap switch-to-buffer] 'consult-buffer))
|
||||||
;; Minibuffer generic stuff
|
;; Minibuffer generic stuff
|
||||||
(use-package marginalia
|
|
||||||
:init (marginalia-mode))
|
|
||||||
(use-package orderless
|
(use-package orderless
|
||||||
:custom
|
:custom
|
||||||
(completion-styles '(orderless partial-completion basic))
|
(completion-styles '(orderless partial-completion basic))
|
||||||
@ -402,10 +394,6 @@ targets."
|
|||||||
(load-theme 'airline-ravenpower t)
|
(load-theme 'airline-ravenpower t)
|
||||||
:init (load-theme 'sv t))
|
:init (load-theme 'sv t))
|
||||||
|
|
||||||
(use-package page-break-lines
|
|
||||||
:diminish
|
|
||||||
:hook (emacs-lisp-mode . page-break-lines-mode))
|
|
||||||
|
|
||||||
;; parentheses settingses
|
;; parentheses settingses
|
||||||
(elpaca (paredit :depth nil)
|
(elpaca (paredit :depth nil)
|
||||||
(use-package paredit
|
(use-package paredit
|
||||||
@ -550,15 +538,6 @@ Return nil if DIR is not in a hugo project at all."
|
|||||||
:custom (rainbow-delimiters-max-face-count 2)
|
:custom (rainbow-delimiters-max-face-count 2)
|
||||||
:hook (prog-mode . rainbow-delimiters-mode))
|
:hook (prog-mode . rainbow-delimiters-mode))
|
||||||
|
|
||||||
;; Hex colors
|
|
||||||
(use-package rainbow-mode
|
|
||||||
:diminish
|
|
||||||
:hook (prog-mode . rainbow-mode))
|
|
||||||
|
|
||||||
;; Nobody loves a good language
|
|
||||||
(use-package powershell
|
|
||||||
:mode ("\\.ps1\\'" . powershell-mode))
|
|
||||||
|
|
||||||
;; c sharp; see https://www.reddit.com/r/emacs/comments/k8tnzg/help_setting_up_c_lsp_omnisharproslyn/
|
;; c sharp; see https://www.reddit.com/r/emacs/comments/k8tnzg/help_setting_up_c_lsp_omnisharproslyn/
|
||||||
;; (there is nothing here because I'm not using c sharp...)
|
;; (there is nothing here because I'm not using c sharp...)
|
||||||
|
|
||||||
@ -569,7 +548,7 @@ Return nil if DIR is not in a hugo project at all."
|
|||||||
:commands lsp
|
:commands lsp
|
||||||
:diminish lsp-lens-mode
|
:diminish lsp-lens-mode
|
||||||
:custom (lsp-completion-provider :none)
|
:custom (lsp-completion-provider :none)
|
||||||
:init (defun corfu/lsp-mode-setup-completion ()
|
:config (defun corfu/lsp-mode-setup-completion ()
|
||||||
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
||||||
'(flex))))
|
'(flex))))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user