Compare commits
No commits in common. "b704b242d39f79ea21590de1ee578f0bbc6fc108" and "8214c831a3ec1b096defb97037d9855f4a5a788d" have entirely different histories.
b704b242d3
...
8214c831a3
126
init.el
126
init.el
@ -25,6 +25,13 @@
|
||||
(defvar use-short-answers t)
|
||||
(defalias 'yes-or-no-p 'y-or-n-p))
|
||||
|
||||
;; do the things
|
||||
(add-hook 'server-after-make-frame-hook #'mir/graphical-setup)
|
||||
(if (display-graphic-p)
|
||||
;; (add-hook 'elpaca-after-init-hook #'mir/graphical-setup)
|
||||
(add-hook 'after-init-hook #'mir/graphical-setup)
|
||||
)
|
||||
|
||||
;; Control backups/swapfiles
|
||||
(defvar backup-directory
|
||||
(expand-file-name "emacs-backups"
|
||||
@ -291,10 +298,9 @@ If the current window occupies the whole frame, split it."
|
||||
(elpaca elpaca-use-package
|
||||
(elpaca-use-package-mode)
|
||||
(setq elpaca-use-package-by-default t))
|
||||
(elpaca-wait)
|
||||
(elpaca-process-queues)
|
||||
(require 'dash)
|
||||
;; (setq use-package-git-keyword :ensure)
|
||||
)
|
||||
(setq use-package-git-keyword :elpaca))
|
||||
|
||||
(defun nix-bootstrap ()
|
||||
"placeholder function. Ideally, load nix packages"
|
||||
@ -309,33 +315,23 @@ If the current window occupies the whole frame, split it."
|
||||
(let ((index (cl-position key plist)))
|
||||
(-remove-at-indices `(,index ,(1+ index)) plist))
|
||||
plist))
|
||||
;; (plist-remove :ensure '(use-package package))
|
||||
;; (plist-remove :straight '(use-package package))
|
||||
;; (if (executable-find "home-manager")
|
||||
;; ;; (nix-bootstrap)
|
||||
;; (straight-bootstrap)
|
||||
;; (if (eq system-type 'windows-nt)
|
||||
;; (straight-bootstrap)
|
||||
;; (elpaca-bootstrap)))
|
||||
;; (straight-bootstrap)
|
||||
(elpaca-bootstrap)
|
||||
|
||||
;; (fset #'use-package--orig (symbol-function #'use-package))
|
||||
;; (defmacro use-package (&rest args)
|
||||
;; "re-definition of use-package to replace the downloader depending on system"
|
||||
;; ;; (require 'dash)
|
||||
;; (if (eq use-package-git-keyword :nix)
|
||||
;; `(use-package--orig ,@(plist-remove :ensure args))
|
||||
;; `(use-package--orig ,@(-replace :ensure use-package-git-keyword args))))
|
||||
;; (use-package lua-mode :ensure nil)
|
||||
|
||||
(setq init-hook 'elpaca-after-init-hook)
|
||||
;; do the things
|
||||
(add-hook 'server-after-make-frame-hook #'mir/graphical-setup)
|
||||
(if (display-graphic-p)
|
||||
(add-hook 'init-hook #'mir/graphical-setup)
|
||||
;; (add-hook 'after-init-hook #'mir/graphical-setup)
|
||||
)
|
||||
(straight-bootstrap)
|
||||
|
||||
(fset #'use-package--orig (symbol-function #'use-package))
|
||||
(defmacro use-package (&rest args)
|
||||
"re-definition of use-package to replace the downloader depending on system"
|
||||
;; (require 'dash)
|
||||
(if (eq use-package-git-keyword :nix)
|
||||
`(use-package--orig ,@(plist-remove :git args))
|
||||
`(use-package--orig ,@(-replace :git use-package-git-keyword args))))
|
||||
;; (use-package lua-mode :git nil)
|
||||
|
||||
(use-package compat)
|
||||
(use-package marginalia :init (marginalia-mode))
|
||||
@ -349,7 +345,7 @@ If the current window occupies the whole frame, split it."
|
||||
:mode ("\\.ps1\\'" . powershell-mode))
|
||||
|
||||
;; (message "%s" elpaca--queues)
|
||||
(if (fboundp #'elpaca) (elpaca-wait))
|
||||
(if (fboundp #'elpaca) (elpaca-process-queues))
|
||||
|
||||
;; diminish
|
||||
(use-package diminish
|
||||
@ -360,8 +356,7 @@ If the current window occupies the whole frame, split it."
|
||||
:demand t
|
||||
:custom (default-input-method "japanese")
|
||||
:config (require 'mir-keybinds))
|
||||
;;(if (fboundp #'elpaca) (elpaca-wait))
|
||||
(elpaca-wait)
|
||||
(if (fboundp #'elpaca) (elpaca-wait))
|
||||
(use-package eldoc-box
|
||||
:after eldoc
|
||||
:diminish (eldoc-mode eldoc-box-hover-at-point-mode)
|
||||
@ -406,7 +401,7 @@ If the current window occupies the whole frame, split it."
|
||||
|
||||
(use-package altcaps
|
||||
:after evil
|
||||
:ensure (:host github
|
||||
:git (:host github
|
||||
:repo "protesilaos/altcaps")
|
||||
:general (general-define-key
|
||||
:states 'visual
|
||||
@ -434,7 +429,7 @@ If the current window occupies the whole frame, split it."
|
||||
|
||||
;; show command that caused last scrollback in eshell etc
|
||||
(use-package sticky-shell
|
||||
:ensure (sticky-shell
|
||||
:git (sticky-shell
|
||||
:host github
|
||||
:repo "andyjda/sticky-shell")
|
||||
:after eshell
|
||||
@ -461,7 +456,7 @@ If the current window occupies the whole frame, split it."
|
||||
:hook (eshell-mode . exec-path-from-shell-initialize))
|
||||
|
||||
(use-package eat
|
||||
:ensure (eat :type git
|
||||
:git (eat :type git
|
||||
:repo "https://codeberg.org/akib/emacs-eat"
|
||||
:files ("*.el" ("term" "term/*.el") "*.texi"
|
||||
"*.ti" ("terminfo/e" "terminfo/e/*")
|
||||
@ -487,32 +482,32 @@ If the current window occupies the whole frame, split it."
|
||||
:custom
|
||||
(eshell-syntax-highlighting-in-remote-dirs t))
|
||||
(use-package eshell-dat
|
||||
:ensure (eshell-dat
|
||||
:git (eshell-dat
|
||||
:repo "https://git.marq42.xyz/mir/eshell-dat")
|
||||
:after eshell)
|
||||
(use-package ansilove
|
||||
:ensure (:host gitlab
|
||||
:git (:host gitlab
|
||||
:repo "xgqt/emacs-ansilove")
|
||||
:commands ansilove)
|
||||
(use-package p11k
|
||||
:ensure (:repo "https://git.marq42.xyz/mir/p11k")
|
||||
:git (:repo "https://git.marq42.xyz/mir/p11k")
|
||||
:after eshell
|
||||
:hook (eshell-first-time-mode . p11k-mode))
|
||||
|
||||
;; File manager. Only breaks when you brag about how it doesn't.
|
||||
(use-package all-the-icons
|
||||
:ensure (all-the-icons
|
||||
:git (all-the-icons
|
||||
;; :post-build
|
||||
;; ("emacsclient" "--eval '(all-the-icons-install-fonts t)'")
|
||||
))
|
||||
(use-package nerd-fonts
|
||||
:ensure (:host github
|
||||
:git (:host github
|
||||
:repo "twlz0ne/nerd-fonts.el"))
|
||||
;; (use-package nerd-icons ;has error
|
||||
;; :ensure (:host github :repo "rainstormstudio/nerd-icons.el")
|
||||
;; :git (:host github :repo "rainstormstudio/nerd-icons.el")
|
||||
;; :custom (nerd-icons-font-family "MesloLGS NF"))
|
||||
(use-package dirvish
|
||||
:ensure (:files (:defaults "extensions/*.el"))
|
||||
:git (:files (:defaults "extensions/*.el"))
|
||||
:defer 0.5
|
||||
:commands dirvish
|
||||
:custom
|
||||
@ -540,7 +535,7 @@ If the current window occupies the whole frame, split it."
|
||||
|
||||
;; Completion framework...
|
||||
(use-package vertico
|
||||
:ensure (:files (:defaults "extensions/*.el"))
|
||||
:git (:files (:defaults "extensions/*.el"))
|
||||
:custom (vertico-resize t)
|
||||
:init (vertico-mode t)
|
||||
:config
|
||||
@ -562,12 +557,12 @@ see https://www.reddit.com/r/emacs/comments/xq6rpa/comment/iqynyu9/?utm_source=
|
||||
:prefix-map 'minibuffer-mode-map
|
||||
"DEL" 'backspace-in-minibuffer))
|
||||
(use-package vertico-mouse
|
||||
:ensure nil
|
||||
:git nil
|
||||
:after vertico
|
||||
:config
|
||||
(vertico-mouse-mode))
|
||||
(use-package app-launcher
|
||||
:ensure (app-launcher
|
||||
:git (app-launcher
|
||||
:host github :repo "SebastienWae/app-launcher")
|
||||
:commands (app-launcher-run-app emacs-run-launcher)
|
||||
:config
|
||||
@ -726,18 +721,17 @@ targets."
|
||||
;; Custom Theme.
|
||||
;; Not to be confused with a color theme, or a color scheme, or a custom scheme.
|
||||
(use-package sv-theme
|
||||
:ensure (sv-theme
|
||||
:git (sv-theme
|
||||
:repo
|
||||
"https://git.marq42.xyz/mir/sv-theme")
|
||||
:config
|
||||
(mir/visual-setup)
|
||||
(set-face-attribute 'font-lock-comment-face nil :inherit 'variable-pitch)
|
||||
(load-theme 'airline-ravenpower t)
|
||||
:init (load-theme 'sv t))
|
||||
|
||||
;; parentheses settingses
|
||||
(use-package paredit
|
||||
;; :ensure nil
|
||||
;; :git nil
|
||||
;; elpaca declaration is broken, I just cloned it manually to .config/emacs/elpaca/repos
|
||||
;; see my issue https://github.com/progfolio/elpaca/issues/40
|
||||
:diminish
|
||||
@ -762,7 +756,7 @@ targets."
|
||||
|
||||
;; org mode and messy things
|
||||
(use-package org
|
||||
:ensure nil
|
||||
:git nil
|
||||
:diminish (org-indent-mode org-vw-mode)
|
||||
:custom
|
||||
;; (org-hide-leading-stars t)
|
||||
@ -920,7 +914,7 @@ Return nil if DIR is not in a hugo project at all."
|
||||
(use-package relint
|
||||
:commands relint-file)
|
||||
(use-package elisp-autofmt
|
||||
:ensure (elisp-autofmt
|
||||
:git (elisp-autofmt
|
||||
:url "https://codeberg.org/ideasman42/emacs-elisp-autofmt"
|
||||
:files ("*"))
|
||||
:custom (elisp-autofmt-python-bin "/usr/bin/python3"))
|
||||
@ -962,7 +956,7 @@ Return nil if DIR is not in a hugo project at all."
|
||||
;; epic drop-down completion
|
||||
(use-package corfu
|
||||
:after eldoc
|
||||
:ensure (:files (:defaults "extensions/*.el"))
|
||||
:git (:files (:defaults "extensions/*.el"))
|
||||
;; :if (display-graphic-p) ; breaks in emacsclient
|
||||
:custom
|
||||
;; (corfu-cycle t) ;; Enable cycling for `corfu-next/previous'
|
||||
@ -1010,11 +1004,11 @@ Return nil if DIR is not in a hugo project at all."
|
||||
:after eshell)
|
||||
|
||||
(use-package popon
|
||||
:ensure (:type git
|
||||
:git (:type git
|
||||
:repo "https://codeberg.org/akib/emacs-popon")
|
||||
:if (not (display-graphic-p)))
|
||||
(use-package corfu-terminal
|
||||
:ensure (corfu-terminal
|
||||
:git (corfu-terminal
|
||||
:type git
|
||||
:repo "https://codeberg.org/akib/emacs-corfu-terminal")
|
||||
:after popon
|
||||
@ -1064,7 +1058,7 @@ Return nil if DIR is not in a hugo project at all."
|
||||
;; :after magit
|
||||
;; :init (magit-todos-mode))
|
||||
(use-package blamer
|
||||
:ensure (:host github :repo "artawower/blamer.el")
|
||||
:git (:host github :repo "artawower/blamer.el")
|
||||
:after magit
|
||||
:custom
|
||||
(blamer-view 'overlay)
|
||||
@ -1078,16 +1072,16 @@ Return nil if DIR is not in a hugo project at all."
|
||||
:italic t)))
|
||||
:commands blamer-show-posframe-commit-info)
|
||||
(use-package magit-stats
|
||||
:ensure (:host github :repo "LionyxML/magit-stats")
|
||||
:git (:host github :repo "LionyxML/magit-stats")
|
||||
:after magit
|
||||
:commands magit-stats)
|
||||
(use-package magit-pretty-graph
|
||||
:ensure (:host github :repo "georgek/magit-pretty-graph")
|
||||
:git (:host github :repo "georgek/magit-pretty-graph")
|
||||
:after magit
|
||||
:commands magit-pg-repo)
|
||||
|
||||
(use-package hyperbole
|
||||
:ensure (:files ("*.el"
|
||||
:git (:files ("*.el"
|
||||
("kotl" "kotl/*.el")
|
||||
"man/*.info" "man/*.texi")
|
||||
:host github :repo "rswgnu/hyperbole")
|
||||
@ -1097,12 +1091,12 @@ Return nil if DIR is not in a hugo project at all."
|
||||
"RET" 'hkey-either))
|
||||
|
||||
(use-package dconf-mode
|
||||
:ensure (dconf-mode
|
||||
:git (dconf-mode
|
||||
:type git
|
||||
:repo "https://git.marq42.xyz/mir/dconf-mode"))
|
||||
|
||||
(use-package info-variable-pitch
|
||||
:ensure (info-variable-pitch
|
||||
:git (info-variable-pitch
|
||||
:host github
|
||||
:repo "kisaragi-hiu/info-variable-pitch")
|
||||
:config
|
||||
@ -1115,13 +1109,13 @@ Return nil if DIR is not in a hugo project at all."
|
||||
:config (load (expand-file-name "~/quicklisp/slime-helper.el")))
|
||||
|
||||
(use-package dwim-shell-command
|
||||
:ensure (dwim-shell-command
|
||||
:git (dwim-shell-command
|
||||
:files (:defaults "dwim-shell-commands.el"))
|
||||
:config (require 'dwim-shell-commands)
|
||||
:commands dwim-shell-commands-kill-process)
|
||||
|
||||
(use-package youtube-sub-extractor
|
||||
:ensure (youtube-sub-extractor
|
||||
:git (youtube-sub-extractor
|
||||
:host github
|
||||
:repo "agzam/youtube-sub-extractor.el")
|
||||
:custom (youtube-sub-extractor-timestamps 'left-margin)
|
||||
@ -1129,11 +1123,11 @@ Return nil if DIR is not in a hugo project at all."
|
||||
|
||||
;; Cheat sheet
|
||||
(use-package cheat-sh
|
||||
:ensure (cheat-sh :host github :repo "davep/cheat-sh.el")
|
||||
:git (cheat-sh :host github :repo "davep/cheat-sh.el")
|
||||
:commands cheat-sh)
|
||||
|
||||
(use-package pcre2el
|
||||
:ensure (:host github
|
||||
:git (:host github
|
||||
:repo "joddie/pcre2el")
|
||||
:config
|
||||
(defmacro prx (&rest expressions)
|
||||
@ -1166,7 +1160,7 @@ Taken from https://howardism.org/Technical/Emacs/eshell-why.html"
|
||||
:mode "\\.yuck")
|
||||
|
||||
(use-package fretboard
|
||||
:ensure (:host github :repo "vifon/fretboard.el")
|
||||
:git (:host github :repo "vifon/fretboard.el")
|
||||
:commands fretboard)
|
||||
|
||||
(use-package power-mode
|
||||
@ -1175,7 +1169,7 @@ Taken from https://howardism.org/Technical/Emacs/eshell-why.html"
|
||||
(power-mode-streak-shake-threshold nil))
|
||||
(use-package notibox
|
||||
:if (display-graphic-p)
|
||||
:ensure (:host github :repo "MitchMarq42/notibox.el")
|
||||
:git (:host github :repo "MitchMarq42/notibox.el")
|
||||
:demand t
|
||||
:custom (notibox-corner 'topright)
|
||||
:config (notibox/setup-timer))
|
||||
@ -1184,33 +1178,33 @@ Taken from https://howardism.org/Technical/Emacs/eshell-why.html"
|
||||
(use-package vidframe
|
||||
:if (display-graphic-p) ;we won't yet bother with
|
||||
;kitty/sixel/catimg shit
|
||||
:ensure (:host github :repo "MitchMarq42/vidframe.el")
|
||||
:git (:host github :repo "MitchMarq42/vidframe.el")
|
||||
:defer t)
|
||||
|
||||
;; Kitty Keyboard Protocol
|
||||
(use-package kkp
|
||||
:ensure (:host github :repo "benjaminor/kkp")
|
||||
:git (:host github :repo "benjaminor/kkp")
|
||||
:unless (display-graphic-p)
|
||||
:config (global-kkp-mode))
|
||||
|
||||
;; Rubix Cube
|
||||
(use-package eagle
|
||||
:ensure (:repo "https://codeberg.org/akib/emacs-eagle"))
|
||||
:git (:repo "https://codeberg.org/akib/emacs-eagle"))
|
||||
(use-package cube
|
||||
:ensure (:repo "https://codeberg.org/akib/emacs-cube")
|
||||
:git (:repo "https://codeberg.org/akib/emacs-cube")
|
||||
:commands 'cube)
|
||||
|
||||
(use-package dtache
|
||||
:ensure (:repo "https://gitlab.com/niklaseklund/dtache")
|
||||
:git (:repo "https://gitlab.com/niklaseklund/dtache")
|
||||
:hook (after-init . dtache-setup))
|
||||
|
||||
|
||||
(use-package org-modern-indent
|
||||
:ensure (:type git :host github :repo "jdtsmith/org-modern-indent")
|
||||
:git (:type git :host github :repo "jdtsmith/org-modern-indent")
|
||||
:hook (org-mode . org-modern-indent-mode))
|
||||
|
||||
(use-package indent-bars
|
||||
:ensure (:type git :host github :repo "jdtsmith/indent-bars")
|
||||
:git (:type git :host github :repo "jdtsmith/indent-bars")
|
||||
:custom
|
||||
(indent-bars-prefer-character t)
|
||||
(indent-bars-color '(highlight :face-bg t :blend 0.75))
|
||||
|
@ -38,10 +38,9 @@ declarations for color schemes."
|
||||
:family "MesloLGS Nerd Font")
|
||||
(set-face-attribute 'default nil
|
||||
:family "MesloLGS Nerd Font")
|
||||
(set-face-attribute 'variable-pitch nil
|
||||
:inherit 'default
|
||||
:family "Ubuntu"
|
||||
:height 140) ;jank? jank
|
||||
;; (set-face-attribute 'variable-pitch nil
|
||||
;; :inherit 'default
|
||||
;; :family "Sans Serif")
|
||||
(setq window-divider-default-places t)
|
||||
(setq right-divider-width 5)
|
||||
(setq ring-bell-function 'ignore)
|
||||
|
Loading…
Reference in New Issue
Block a user