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.
35 lines
1.1 KiB
EmacsLisp
35 lines
1.1 KiB
EmacsLisp
;;; siren-project-explorer.el --- jimeh's Emacs Siren: project-explorer configuration. -*- lexical-binding: nil; -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for project-explorer.
|
|
|
|
;;; Code:
|
|
|
|
(use-package project-explorer
|
|
:general
|
|
("C-x C-p" 'project-explorer-toggle)
|
|
|
|
:custom
|
|
(pe/follow-current t)
|
|
(pe/width 54)
|
|
(pe/cache-directory (siren-cache-dir "project-explorer"))
|
|
|
|
:config
|
|
;; Make Project Explorer open selected file in last used buffer
|
|
(setq pe/display-content-buffer-function
|
|
(lambda (buffer)
|
|
(let* (( last-buffer
|
|
(car (cl-remove 'project-explorer-mode
|
|
(buffer-list)
|
|
:key (apply-partially 'buffer-local-value
|
|
'major-mode))))
|
|
( window (get-buffer-window last-buffer)))
|
|
(if window
|
|
(set-window-buffer window buffer)
|
|
(pe/show-buffer buffer)))
|
|
)))
|
|
|
|
(provide 'siren-project-explorer)
|
|
;;; siren-project-explorer.el ends here
|