From caf3a7861b8268d34f1c6c364d301c9489dbcfbd Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 1 Apr 2024 21:08:41 -0500 Subject: [PATCH] Mini-frame is cool, but has a lot of latency --- flake.lock | 17 +++++++++++++++++ flake.nix | 7 ++++++- user/app/doom-emacs/config.el | 26 ++++++++++++++++---------- user/app/doom-emacs/doom.org | 26 ++++++++++++++++---------- user/app/doom-emacs/packages.el | 1 - 5 files changed, 55 insertions(+), 22 deletions(-) diff --git a/flake.lock b/flake.lock index c59b34f..546de95 100644 --- a/flake.lock +++ b/flake.lock @@ -547,6 +547,22 @@ "type": "indirect" } }, + "mini-frame": { + "flake": false, + "locked": { + "lastModified": 1685981796, + "narHash": "sha256-HsGEu37oq2uuQFfE2m++VH1SwyGC89ChnmrBVFC/WME=", + "owner": "muffinmad", + "repo": "emacs-mini-frame", + "rev": "f420020aa33a1b00407000addd995170a36e026e", + "type": "github" + }, + "original": { + "owner": "muffinmad", + "repo": "emacs-mini-frame", + "type": "github" + } + }, "nix-doom-emacs": { "inputs": { "doom-emacs": "doom-emacs", @@ -888,6 +904,7 @@ "home-manager": "home-manager", "hyprland-plugins": "hyprland-plugins", "kdenlive-pin-nixpkgs": "kdenlive-pin-nixpkgs", + "mini-frame": "mini-frame", "nix-doom-emacs": "nix-doom-emacs", "nix-straight": "nix-straight", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 32507ec..7779111 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ outputs = inputs@{ self, nixpkgs, nixpkgs-staging-next, nixpkgs-stable, emacs-pin-nixpkgs, kdenlive-pin-nixpkgs, home-manager, nix-doom-emacs, nix-straight, stylix, blocklist-hosts, hyprland-plugins, rust-overlay, org-nursery, org-yaap, - org-side-tree, org-timeblock, phscroll, ... }: + org-side-tree, org-timeblock, phscroll, mini-frame, ... }: let # ---- SYSTEM SETTINGS ---- # systemSettings = { @@ -123,6 +123,7 @@ inherit (inputs) org-side-tree; inherit (inputs) org-timeblock; inherit (inputs) phscroll; + inherit (inputs) mini-frame; #inherit (inputs) nix-flatpak; inherit (inputs) stylix; inherit (inputs) hyprland-plugins; @@ -215,6 +216,10 @@ url = "github:misohena/phscroll"; flake = false; }; + mini-frame = { + url = "github:muffinmad/emacs-mini-frame"; + flake = false; + }; stylix.url = "github:danth/stylix"; diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index f54d629..0cb69e6 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -190,16 +190,22 @@ ;; For camelCase (global-subword-mode 1) -;; Mini-frames -(setq mini-frame-show-parameters - '((left . 0.5) - (top . 10) - (width . 0.6) - (height . 15)) -) -(setq mini-frame-resize nil) -(setq mini-frame-standalone t) -(mini-frame-mode -1) ;; don't enable this for now since it's kinda slow on my system +;; Mini-frames ;; cool but kinda suboptimal atm +;(add-load-path! "~/.emacs.d/mini-frame") +;(require 'mini-frame) +;(setq mini-frame-ignore-commands '(evil-ex-search-forward helpful-variable helpful-callable)) +;(setq mini-frame-show-parameters +; '((left . 216) +; (top . 240) +; (width . 0.78) +; (height . 20) +; (alpha-background . 90)) +;) +;(setq mini-frame-detach-on-hide nil) +;(setq mini-frame-resize t) +;(setq resize-mini-frames t) +;(setq mini-frame-standalone nil) +;(mini-frame-mode 1) ;;;------ Registers ------;;; diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index d9b1858..bc915f1 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -253,16 +253,22 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu ;; For camelCase (global-subword-mode 1) -;; Mini-frames -(setq mini-frame-show-parameters - '((left . 0.5) - (top . 10) - (width . 0.6) - (height . 15)) -) -(setq mini-frame-resize nil) -(setq mini-frame-standalone t) -(mini-frame-mode -1) ;; don't enable this for now since it's kinda slow on my system +;; Mini-frames ;; cool but kinda suboptimal atm +;(add-load-path! "~/.emacs.d/mini-frame") +;(require 'mini-frame) +;(setq mini-frame-ignore-commands '(evil-ex-search-forward helpful-variable helpful-callable)) +;(setq mini-frame-show-parameters +; '((left . 216) +; (top . 240) +; (width . 0.78) +; (height . 20) +; (alpha-background . 90)) +;) +;(setq mini-frame-detach-on-hide nil) +;(setq mini-frame-resize t) +;(setq resize-mini-frames t) +;(setq mini-frame-standalone nil) +;(mini-frame-mode 1) #+END_SRC ** Registers diff --git a/user/app/doom-emacs/packages.el b/user/app/doom-emacs/packages.el index 7961f59..c590dfb 100644 --- a/user/app/doom-emacs/packages.el +++ b/user/app/doom-emacs/packages.el @@ -30,4 +30,3 @@ (package! org-ql) (package! persist) (package! sudo-edit) -(package! mini-frame)