Files
.emacs.d/modules/projects/siren-dired-sidebar.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
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.
2025-06-29 12:23:03 +01:00

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