Skip to content

Commit

Permalink
emacs: Add sorting by downloads to paradox
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorymeltzer committed Apr 2, 2021
1 parent f465f16 commit 31c5cd3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .emacs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ Record that in `paradox--backups', but do nothing if
(advice-add sym :override newdef '((name . :paradox-override)))
(add-to-list 'paradox--backups sym)))

;; Enable sorting on the downloads column, https://github.com/Malabarba/paradox/pull/190
(paradox--define-sort paradox--column-name-download "d")

;; Refresh stars and downloads. Probably only need to do once per session to
;; get around https://github.com/Malabarba/paradox/issues/176. Can't seem to
;; hook this into something like `paradox-menu-mode-hook' or make use of
;; advice-add without causing errors, so just run manually for now.
;; (paradox--refresh-remote-data)

(paradox-enable)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(load-theme 'kaolin-galaxy)
Expand Down Expand Up @@ -1594,6 +1603,7 @@ to explicitly provide `..' as an argument. Will be remapped to `^'."

;;;;;;;;;;;;;;;;;;;
;; Smex stuff, better M-x using ido
;; Maybe migrate to amx? Try it out? https://github.com/DarwinAwardWinner/amx
;; Should put this closer to the end since (smex-initialize) so early will
;; miss functions loaded via autoload
;; While smex is active...
Expand Down Expand Up @@ -2541,6 +2551,8 @@ in the buffer." t)

;; github-explorer https://github.com/TxGVNN/github-explorer
;; Browse files from a repo locally
;; Latest version a right pain when using IDO! Can't get tree ("") at all, need
;; to disable ido-ubiquitous-mode or something FIXME TODO
(defalias 'browse-github-repo 'github-explorer)

(defun view-url ()
Expand Down

0 comments on commit 31c5cd3

Please sign in to comment.