Skip to content

Commit 78bbe35

Browse files
committed
gist-list-pop-limit: add function to unstack limiter function
1 parent c37ddc5 commit 78bbe35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gist.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ put it into `kill-ring'."
608608
(define-key map "*" 'gist-star)
609609
(define-key map "^" 'gist-unstar)
610610
(define-key map "f" 'gist-fork)
611+
(define-key map "/w" 'gist-list-pop-limit)
611612
map))
612613

613614
(define-derived-mode gist-list-mode tabulated-list-mode "Gists"
@@ -624,6 +625,13 @@ put it into `kill-ring'."
624625
(use-local-map gist-list-menu-mode-map)
625626
(font-lock-add-keywords nil '(("#[^[:space:]]*" . 'font-lock-keyword-face))))
626627

628+
(defun gist-list-pop-limit (&optional all)
629+
(interactive "P")
630+
(if all
631+
(setq gist-list-limits nil)
632+
(pop gist-list-limits))
633+
(gist-list-user 'current-user))
634+
627635
(defun gist-list-apply-limits (gists)
628636
(condition-case nil
629637
(delete nil

0 commit comments

Comments
 (0)