ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

can't sort files in dired by size or extension with ergoemacs-mode-20150318.1413 #340

Closed magichowl closed 9 years ago

magichowl commented 9 years ago

My kbds for sorting files are:

(add-hook 'dired-mode-hook (lambda ()
  (interactive)
  (make-local-variable  'dired-sort-map)
  (setq dired-sort-map (make-sparse-keymap))
  (define-key dired-mode-map "s" dired-sort-map)
  (define-key dired-sort-map "s"
              '(lambda () "sort by Size"
                (interactive) (dired-sort-other (concat dired-listing-switches "-AlS --si --time-style long-iso"))))
  (define-key dired-sort-map "."
              '(lambda () "sort by eXtension"
                 (interactive) (dired-sort-other (concat dired-listing-switches "X"))))
  (define-key dired-sort-map "t"
              '(lambda () "sort by Time"
                 (interactive) (dired-sort-other (concat dired-listing-switches "t"))))
  (define-key dired-sort-map "n"
              '(lambda () "sort by Name"
                 (interactive) (dired-sort-other (concat dired-listing-switches ""))))
  ;; Use "|", not "r".
  (define-key dired-mode-map "|" 'dired-sort-menu-toggle-reverse)
  ))

after I upgrade ergoemacs from ergoemacs-mode-5.14.7.3, sorting doesn't work. More weird is the origin sorting of dired+ mode and C+u s sorting by properties function well.

mattfidler commented 9 years ago

I'm not sure why it isn't working well... :(

mattfidler commented 9 years ago

I modified the latest Stable to work with Emacs 25. I have to have the latest stable in the master branch to push to elpa. Do you use melpa stable?

mattfidler commented 9 years ago

This currently works for me in emacs 24.3 and the latest master.