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.
51 lines
1.4 KiB
EmacsLisp
51 lines
1.4 KiB
EmacsLisp
;;; siren-perspective.el --- jimeh's Emacs Siren: perspective configuration. -*- lexical-binding: nil; -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for perspective.
|
|
|
|
;;; Code:
|
|
|
|
(use-package perspective
|
|
:demand
|
|
:general
|
|
(:keymaps 'persp-mode-map
|
|
"C-z z" 'persp-switch
|
|
"C-z C-z" 'persp-switch
|
|
"C-z c" 'persp-switch
|
|
"C-z C-c" 'persp-switch
|
|
"C-z s" 'persp-switch
|
|
"C-z C-s" 'persp-switch
|
|
"C-z b" 'persp-switch
|
|
"C-z C-b" 'persp-switch
|
|
"C-z l" 'persp-switch-last
|
|
"C-z C-l" 'persp-switch-last
|
|
"C-z c" 'persp-remove-buffer
|
|
"C-z C-c" 'persp-remove-buffer
|
|
"C-z k" 'persp-kill
|
|
"C-z C-k" 'persp-kill
|
|
"C-z r" 'persp-rename
|
|
"C-z C-r" 'persp-rename
|
|
"C-z a" 'persp-add-buffer
|
|
"C-z C-a" 'persp-add-buffer
|
|
"C-z i" 'persp-import
|
|
"C-z C-i" 'persp-import
|
|
"C-z n" 'persp-next
|
|
"C-z C-n" 'persp-next
|
|
"C-z p" 'persp-prev
|
|
"C-z C-p" 'persp-prev)
|
|
|
|
:custom-face
|
|
;; (persp-selected-face ((t (:foreground "#d97a35" :weight bold))))
|
|
|
|
:custom
|
|
(persp-mode-prefix-key "")
|
|
(persp-initial-frame-name "0:main")
|
|
|
|
:config
|
|
(define-key persp-mode-map (kbd "C-z") perspective-map)
|
|
(persp-mode))
|
|
|
|
(provide 'siren-perspective)
|
|
;;; siren-perspective.el ends here
|