Update
This commit is contained in:
@@ -181,7 +181,12 @@ If this is a daemon session, load them all immediately instead."
|
||||
(setq kill-whole-line t)
|
||||
(setq make-backup-files nil)
|
||||
(setq use-short-answers t)
|
||||
;; (setq frame-title-format "\n")
|
||||
(setq frame-title-format
|
||||
'((:eval (if (and (boundp 'projectile-mode)
|
||||
projectile-mode
|
||||
(projectile-project-p))
|
||||
(format "[%s] %s" (projectile-project-name) (buffer-name)) ;; Add project name in front when avaliable
|
||||
"%b")))) ;; Otherwise buffer name only
|
||||
(setq custom-safe-themes t)
|
||||
|
||||
(add-to-list 'default-frame-alist '(drag-internal-border . 1))
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
([remap Info-search] . consult-info)
|
||||
;; ([remap isearch-forward] . consult-line)
|
||||
([remap recentf-open-files] . consult-recent-file)
|
||||
([remap bookmark-jump] . consult-bookmark)
|
||||
("C-x M-:" . consult-complex-command) ;; orig. repeat-complex-command
|
||||
;; Custom M-# bindings for fast register access
|
||||
("M-#" . consult-register-load)
|
||||
|
||||
@@ -86,6 +86,10 @@
|
||||
org-faces org-entities org-list org-pcomplete org-src
|
||||
org-footnote org-macro ob org org-clock org-agenda
|
||||
org-capture))
|
||||
|
||||
(add-hook 'org-mode-hook
|
||||
(lambda ()
|
||||
(yas-activate-extra-mode 'LaTeX-mode)))
|
||||
;; For hydra
|
||||
(defun hot-expand (str &optional mod)
|
||||
"Expand org template.
|
||||
@@ -209,10 +213,6 @@ the element after the #+HEADER: tag."
|
||||
("BUG" error bold)
|
||||
("XXX" font-lock-constant-face bold))))
|
||||
|
||||
(add-hook 'org-mode-hook
|
||||
(lambda ()
|
||||
(yas-activate-extra-mode 'LaTeX-mode)))
|
||||
|
||||
(use-package org-latex-preview
|
||||
:straight nil
|
||||
:hook (org-mode . org-latex-preview-mode)
|
||||
|
||||
@@ -164,10 +164,6 @@
|
||||
;; but you can use any other Nerd Font if you want
|
||||
(nerd-icons-font-family "Symbols Nerd Font Mono"))
|
||||
|
||||
(use-package nerd-icons-ibuffer
|
||||
:straight t
|
||||
:hook (ibuffer-mode-hook . nerd-icons-ibuffer-mode))
|
||||
|
||||
;; Display transient in child frame
|
||||
;; (use-package transient-posframe
|
||||
;; :diminish
|
||||
|
||||
@@ -10,23 +10,21 @@
|
||||
;; Recommended keymap prefix on Windows/Linux
|
||||
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map))
|
||||
|
||||
(use-package ibuffer
|
||||
:ensure nil
|
||||
:bind ("C-x C-b" . ibuffer)
|
||||
:init (setq ibuffer-filter-group-name-face '(:inherit (font-lock-string-face bold))))
|
||||
(use-package nerd-icons-ibuffer
|
||||
:straight t
|
||||
:hook (ibuffer-mode-hook . nerd-icons-ibuffer-mode))
|
||||
(use-package ibuffer-projectile
|
||||
:config
|
||||
:init
|
||||
(add-hook 'ibuffer-hook
|
||||
(lambda ()
|
||||
(ibuffer-projectile-set-filter-groups)
|
||||
(unless (eq ibuffer-sorting-mode 'alphabetic)
|
||||
(ibuffer-do-sort-by-alphabetic)))))
|
||||
|
||||
;; (use-package consult-projectile
|
||||
;; :bind (([remap projectile-find-file] . consult-projectile-find-file)
|
||||
;; ([remap projectile-recentf] . consult-projectile-recentf)
|
||||
;; ([remap projectile-switch-project] . consult-projectile-switch-project)
|
||||
;; ([remap projectile-switch-to-buffer] . consult-projectile-switch-to-buffer)
|
||||
;; ([remap projectile-find-dir] . consult-projectile-find-dir)))
|
||||
|
||||
(global-set-key (kbd "C-x C-b") #'ibuffer)
|
||||
|
||||
(use-package beframe
|
||||
:hook after-init
|
||||
:bind ("C-x f" . other-frame-prefix)
|
||||
@@ -49,6 +47,7 @@
|
||||
(beframe--assume
|
||||
(list (get-buffer buf))))))
|
||||
|
||||
;; Beframe integration with other packages
|
||||
(with-eval-after-load 'consult
|
||||
(defun consult-beframe-buffer-list (&optional frame)
|
||||
"Return the list of buffers from `beframe-buffer-names' sorted by visibility.
|
||||
|
||||
Reference in New Issue
Block a user