Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add action to widget-create #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dashboard-widgets.el
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ WIDGET-PARAMS are passed to the \"widget-create\" function."
;;
;; Section list
;;
(defmacro dashboard-insert-section-list (section-name list _action &rest rest)
(defmacro dashboard-insert-section-list (section-name list action &rest rest)
"Insert into SECTION-NAME a LIST of items, expanding ACTION and passing REST to widget creation."
`(when (car ,list)
(mapc
Expand Down Expand Up @@ -362,6 +362,7 @@ WIDGET-PARAMS are passed to the \"widget-create\" function."
(setq tag (concat icon " " ,@rest))))

(widget-create 'file-link
:action ,action
:tag tag
:mouse-face 'highlight
:help-echo el
Expand Down Expand Up @@ -508,7 +509,7 @@ date part is considered."
register-alist
list-size
"e"
(lambda (&rest ignore) (jump-to-register (car el)))
`(lambda (&rest ignore) (jump-to-register (car el)))
(format "%c - %s" (car el) (register-describe-oneline (car el)))))


Expand Down