Skip to content
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

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

Closed
magichowl opened this issue Mar 20, 2015 · 3 comments
Labels

Comments

@magichowl
Copy link

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
Copy link
Member

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

mattfidler added a commit that referenced this issue Mar 30, 2015
Work-around for new eieio implementation. See #330

Conflicts:
	ergoemacs-theme-engine.el
@mattfidler mattfidler added the bug label Mar 30, 2015
@mattfidler
Copy link
Member

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
Copy link
Member

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

mattfidler added a commit that referenced this issue Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants