Hacker News new | past | comments | ask | show | jobs | submit login

You could always

     emacs --eval '(dired ".")'
to immediately start emacs-dired in this directory :-)



Also:

    $ cat ~/bin/dired
    #!/bin/bash

    # Launch Dired in a plain Emacs configuration.

    # Arguments are passed to Emacs, e.g. "-nw" works as expected.

    emacs -q "$@" \
          --eval "(dired default-directory)" \
          --eval "(defun kill-window-or-emacs () (interactive) (if (one-window-p) (kill-emacs) (delete-window)))" \
          --eval "(setq dired-dwim-target t delete-by-moving-to-trash t)" \
          --eval "(define-key dired-mode-map (kbd \"q\") #'kill-window-or-emacs)"




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: