layers/*: remove quote inside the cl-case clauses

This commit is contained in:
Lin Sun 2022-09-28 00:00:57 +00:00 committed by Maxi Wolff
parent b8882d0741
commit 7ec7d843e0
6 changed files with 44 additions and 44 deletions

View File

@ -204,9 +204,9 @@
(add-hook 'company-box-selection-hook (add-hook 'company-box-selection-hook
(lambda (selection frame) (company-box-doc--hide frame))) (lambda (selection frame) (company-box-doc--hide frame)))
(cl-case auto-completion-enable-help-tooltip (cl-case auto-completion-enable-help-tooltip
('manual (define-key company-active-map (manual (define-key company-active-map
(kbd "M-h") #'company-box-doc-manually)) (kbd "M-h") #'company-box-doc-manually))
('t (setq company-box-doc-enable t)))))) (t (setq company-box-doc-enable t))))))
(defun auto-completion/init-company-posframe () (defun auto-completion/init-company-posframe ()
(use-package company-posframe (use-package company-posframe

View File

@ -47,7 +47,7 @@
;; Backwards compatibility ;; Backwards compatibility
(cl-case osx-use-option-as-meta (cl-case osx-use-option-as-meta
('nil (setf osx-option-as 'none)) (nil (setf osx-option-as 'none))
(deprecated nil) (deprecated nil)
(t (setf osx-option-as 'meta))) (t (setf osx-option-as 'meta)))

View File

@ -861,11 +861,11 @@ then apply that major mode to the new buffer."
(interactive) (interactive)
(let ((newbuf (generate-new-buffer "untitled"))) (let ((newbuf (generate-new-buffer "untitled")))
(cl-case split (cl-case split
('left (split-window-horizontally)) (left (split-window-horizontally))
('below (spacemacs/split-window-vertically-and-switch)) (below (spacemacs/split-window-vertically-and-switch))
('above (split-window-vertically)) (above (split-window-vertically))
('right (spacemacs/split-window-horizontally-and-switch)) (right (spacemacs/split-window-horizontally-and-switch))
('frame (select-frame (make-frame)))) (frame (select-frame (make-frame))))
;; Prompt to save on `save-some-buffers' with positive PRED ;; Prompt to save on `save-some-buffers' with positive PRED
(with-current-buffer newbuf (with-current-buffer newbuf
(setq-local buffer-offer-save t) (setq-local buffer-offer-save t)

View File

@ -37,20 +37,20 @@ POSITION should be one of bottom, top, left and right.
SIZE should be either a positive number of nil. Size is interpreted as SIZE should be either a positive number of nil. Size is interpreted as
width or height depending on POSITION." width or height depending on POSITION."
(let* ((size (cl-case position (let* ((size (cl-case position
('left (purpose--normalize-width (or size (left (purpose--normalize-width (or size
popwin:popup-window-width)))
(right (purpose--normalize-width (or size
popwin:popup-window-width))) popwin:popup-window-width)))
('right (purpose--normalize-width (or size (top (purpose--normalize-height (or size
popwin:popup-window-width))) popwin:popup-window-height)))
('top (purpose--normalize-height (or size (bottom (purpose--normalize-height (or size
popwin:popup-window-height))) popwin:popup-window-height)))))
('bottom (purpose--normalize-height (or size
popwin:popup-window-height)))))
(size (when size (- size))) (size (when size (- size)))
(side (cl-case position (side (cl-case position
('left 'left) (left 'left)
('right 'right) (right 'right)
('top 'above) (top 'above)
('bottom 'below)))) (bottom 'below))))
(lambda (buffer alist) (lambda (buffer alist)
(let* ((main-window (if pupo-split-active-window (let* ((main-window (if pupo-split-active-window
(selected-window) (selected-window)
@ -77,10 +77,10 @@ bottom -> popb
POSITION defaults to bottom." POSITION defaults to bottom."
(cl-case (or position 'bottom) (cl-case (or position 'bottom)
;; names are short so they don't take much room in the mode-line ;; names are short so they don't take much room in the mode-line
('left 'popl) (left 'popl)
('right 'popr) (right 'popr)
('top 'popt) (top 'popt)
('bottom 'popb))) (bottom 'popb)))
(defun pupo//actions (settings) (defun pupo//actions (settings)
"Generate list of display functions for displaying a popup window. "Generate list of display functions for displaying a popup window.

View File

@ -75,9 +75,9 @@
(defun spacemacs/lsp-bind-keys () (defun spacemacs/lsp-bind-keys ()
"Define key bindings for the lsp minor mode." "Define key bindings for the lsp minor mode."
(cl-ecase lsp-navigation (cl-ecase lsp-navigation
('simple (spacemacs//lsp-bind-simple-navigation-functions "g")) (simple (spacemacs//lsp-bind-simple-navigation-functions "g"))
('peek (spacemacs//lsp-bind-peek-navigation-functions "g")) (peek (spacemacs//lsp-bind-peek-navigation-functions "g"))
('both (both
(spacemacs//lsp-bind-simple-navigation-functions "g") (spacemacs//lsp-bind-simple-navigation-functions "g")
(spacemacs//lsp-bind-peek-navigation-functions "G"))) (spacemacs//lsp-bind-peek-navigation-functions "G")))
@ -183,21 +183,21 @@ KEY is a string corresponding to a key sequence
KIND is a quoted symbol corresponding to an extension defined using KIND is a quoted symbol corresponding to an extension defined using
`lsp-define-extensions'." `lsp-define-extensions'."
(cl-ecase lsp-navigation (cl-ecase lsp-navigation
('simple (spacemacs/set-leader-keys-for-major-mode mode (simple (spacemacs/set-leader-keys-for-major-mode mode
(concat "g" key) (concat "g" key)
(spacemacs//lsp-extension-name (spacemacs//lsp-extension-name
layer-name backend-name "find" kind))) layer-name backend-name "find" kind)))
('peek (spacemacs/set-leader-keys-for-major-mode mode (peek (spacemacs/set-leader-keys-for-major-mode mode
(concat "g" key) (concat "g" key)
(spacemacs//lsp-extension-name (spacemacs//lsp-extension-name
layer-name backend-name "peek" kind))) layer-name backend-name "peek" kind)))
('both (spacemacs/set-leader-keys-for-major-mode mode (both (spacemacs/set-leader-keys-for-major-mode mode
(concat "g" key) (concat "g" key)
(spacemacs//lsp-extension-name (spacemacs//lsp-extension-name
layer-name backend-name "find" kind) layer-name backend-name "find" kind)
(concat "G" key) (concat "G" key)
(spacemacs//lsp-extension-name (spacemacs//lsp-extension-name
layer-name backend-name "peek" kind))))) layer-name backend-name "peek" kind)))))
(defun spacemacs/lsp-bind-extensions-for-mode (mode (defun spacemacs/lsp-bind-extensions-for-mode (mode
layer-name layer-name

View File

@ -75,9 +75,9 @@ Additionally changes to working directory when the value of
`shell-pop-autocd-to-working-dir' is non-nil (default)." `shell-pop-autocd-to-working-dir' is non-nil (default)."
(interactive) (interactive)
(let ((shell (cl-case shell-default-shell (let ((shell (cl-case shell-default-shell
('multi-vterm 'multivterm) (multi-vterm 'multivterm)
('multi-term 'multiterm) (multi-term 'multiterm)
('shell 'inferior-shell) (shell 'inferior-shell)
(t shell-default-shell)))) (t shell-default-shell))))
(call-interactively (intern (format "spacemacs/shell-pop-%S" shell))))) (call-interactively (intern (format "spacemacs/shell-pop-%S" shell)))))