Files
.emacs.d/modules/projects/siren-ecb.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

48 lines
1.6 KiB
EmacsLisp

;;; siren-ecb.el --- jimeh's Emacs Siren: ECB configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for ECB.
;;; Code:
(use-package ecb
:custom
(ecb-layout-name "left13")
(ecb-primary-secondary-mouse-buttons 'mouse-1--mouse-2)
(ecb-tree-make-parent-node-sticky nil)
(ecb-prescan-directories-for-emptyness nil)
(ecb-tip-of-the-day nil)
(ecb-tree-indent 3)
(ecb-windows-width 0.24)
(ecb-source-path '(("~/Projects" "Projects")
("/media/projects" "devbox/projects")
("~/.emacs.d" ".emacs.d")
("~/.dotfiles" ".dotfiles")
("~/Notes" "Notes")
("~/Projects/which" "which")
("~/Projects/fitzdares" "fitzdares")
("~/Projects/Go" "Go")
("~/src" "src")
("~/Sites" "Sites")
("~" "~")
("/" "/")))
;; Add "^Icon$" as a exclude to the default sources. Dropbox uses "Icon"
;; files with some weird unprintable character at the end of the
;; filename to customize the folder icon. ECB however errors out when
;; trying to render this file, hence we're no longer displaying it at
;; all.
(ecb-source-file-regexps
(quote
((".*"
("\\(^\\(#\\)\\|\\(~$\\|\\.\\(elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\)$\\)\\)" "^Icon$")
("^\\.\\(emacs\\|gnus\\)$")))))
(when window-system
(ecb-activate)
(siren-general-define-key "C-x C-p" 'ecb-toggle-ecb-windows)))
(provide 'siren-ecb)
;;; siren-ecb.el ends here