dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1b0b0eadf141103acc0eb6d7a7a4274d2f554b6b
parent 03d0896b704c48eb53d2e5fb77418f879a634c55
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri, 14 Jan 2022 17:30:46 +0100

emacs: put ivy into a centered popup

Diffstat:
Memacs/config.org | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -144,6 +144,25 @@ Switched to this from Helm, it's more lightweight. (ivy-quit-and-run (counsel-file-jump nil "~/.dotfiles/"))))) #+end_src +I like having ivy in a popup. +Problem: posframe does not work if emacs is too old and on macos. +See here: https://github.com/tumashu/posframe/issues/30 +On Mac, ~brew install --HEAD emacs~ doesn't work either. +Solution: ~brew tap daviderestivo/emacs-head && brew install emacs-head@28 --with-cocoa~ + +#+begin_src emacs-lisp + (if (and ( version< emacs-version "28") (equal system-type 'darwin)) + (message "ivy-posframe won't work properly, run `brew install daviderestivo/emacs-head/emacs-head@28 --with-cocoa`") + (use-package ivy-posframe + :config + (setq ivy-posframe-display-functions-alist '((t . ivy-posframe-display-at-frame-center))) + (setq ivy-posframe-parameters + '((left-fringe . 8) + (right-fringe . 8))) + (setq ivy-posframe-border-width 10) + (custom-set-faces '(ivy-posframe-border ((t (:inherit mode-line-inactive))))) + (ivy-posframe-mode 1))) +#+end_src ** org In org mode, I want to use bullets instead of stars, so I also install ~org-bullets~.