mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress the warnings introduced in Emacs 31 requiring all elisp files to have a `lexical-binding` comment. This retains the default behavior of dynamic binding when no `lexical-binding` comment is present. With it set to `t` across the board, various things break, and fixing those is a task for another day.
32 lines
780 B
EmacsLisp
32 lines
780 B
EmacsLisp
;;; siren-dired-sidebar.el --- jimeh's Emacs Siren: dired-sidebar configuration. -*- lexical-binding: nil; -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for dired-sidebar.
|
|
|
|
;;; Code:
|
|
|
|
(use-package dired-sidebar
|
|
:commands dired-sidebar-toggle-sidebar
|
|
|
|
:general
|
|
("C-x C-p" 'dired-sidebar-toggle-sidebar)
|
|
|
|
:config
|
|
(setq dired-sidebar-subtree-line-prefix " .")
|
|
(cond
|
|
((eq system-type 'darwin)
|
|
(if (display-graphic-p)
|
|
(setq dired-sidebar-theme 'icons)
|
|
(setq dired-sidebar-theme 'nerd)))
|
|
(:default
|
|
(setq dired-sidebar-theme 'nerd)))
|
|
(setq dired-sidebar-use-term-integration t))
|
|
|
|
(use-package all-the-icons-dired
|
|
:after dired-sidebar
|
|
:commands (all-the-icons-dired-mode))
|
|
|
|
(provide 'siren-dired-sidebar)
|
|
;;; siren-dired-sidebar.el ends here
|