Skip to content

Commit

Permalink
command-commands(command-source): Fix indentation.
Browse files Browse the repository at this point in the history
As per the convention from documents/README.org.
  • Loading branch information
aadcg committed Nov 8, 2023
1 parent d55b7cd commit 8f32a57
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions source/command-commands.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@

(define-class command-source (prompter:source)
((prompter:name "Commands")
(global-p t
:type boolean
:documentation "Whether global commands are included in the suggestions.")
(buffer (current-buffer)
:type buffer)
(prompter:constructor (lambda (source)
(sort-by-time
(list-commands
:global-p (global-p source)
:mode-symbols (mapcar #'sera:class-name-of (sera:filter #'enabled-p (modes (buffer source))))))))
(global-p
t
:type boolean
:documentation "Whether global commands are included in the suggestions.")
(buffer
(current-buffer)
:type buffer)
(prompter:constructor
(lambda (source)
(sort-by-time
(list-commands :global-p (global-p source)
:mode-symbols (mapcar #'sera:class-name-of
(sera:filter #'enabled-p
(modes (buffer source))))))))
(prompter:active-attributes-keys
'("Name" "Bindings" "Docstring")
:accessor nil)
Expand Down

0 comments on commit 8f32a57

Please sign in to comment.