Compare commits

...

2 Commits

Author SHA1 Message Date
dcc186edae add extra folders to ivy to be able to select current dir 2025-06-30 11:34:46 +02:00
b9500a473b clean up 2025-06-30 11:33:48 +02:00
2 changed files with 11 additions and 14 deletions

23
init
View File

@@ -11,21 +11,18 @@
;; Requirements: git gnuplot ledger
;;; Code:
;; early-init spacemacs-theme
;; Load `early-init-el' if not already
;; - Emacs 27.1 introduced early-init.el, which is run before init.el,
;; before package and UI initialization happens, and before site
;; files are loaded. In the case that early-init.el wasn't loaded
;; (e.g. using old emacs? Or this file directly loaded?), we do it
;; explicitly
;; - for org export async actions, e.g. as in
;; emacs -l ~/.config/emacs/init -l /tmp/org-export-processXYZ
(require 'early-init
(concat
(file-name-directory (file-truename (or load-file-name
"~/.config/emacs/init")))
"early-init.el")
(concat (file-name-directory (file-truename (or load-file-name "~/.config/emacs/init")))
"early-init.el")
t)
;; Load early-init-el if not already
;; - Emacs 27.1 introduced early-init.el, which is run before
;; init.el, before package and UI initialization happens, and
;; before site files are loaded. In the case that early-init.el
;; wasn't loaded (e.g. using old emacs? Or this file directly
;; loaded?), we do it explicitly
;; - for org export async actions, e.g. as in
;; emacs -l ~/.config/emacs/init -l /tmp/org-export-processXYZ
(require 'pre-settings) ;; use-package delight functions variables
(require 'which-key-settings) ;; https://melpa.org/#/which-key
(require 'general-settings) ;; requires which-key

View File

@@ -48,7 +48,7 @@
(setq ivy-use-virtual-buffers t) ;; Add recent files and bookmarks to the ivy-switch-buffer
(setq ivy-count-format "%d/%d ") ;; Displays the current and total number in the collection in the prompt
(setq enable-recursive-minibuffers t)
(setq ivy-extra-directories nil) ;; remove ./ and ../ from list, because <tab> on them would open dird mode. default: '("../" "./")
(setq ivy-extra-directories '("../" "./")) ;; keep "./" and "../" in the list to be able to use also mouse click and if asked for directory to have the current one as a candidate "./"
(setq ivy-use-selectable-prompt t) ;; make the prompt line selectable. Example: create a file bar when a file barricade exists in the current directory. Also C-M-j usable
;; enable this if you want `swiper' to use it
;; (setq search-default-mode #'char-fold-to-regexp)