Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a simple way to untar files in Emacs Dired? Currently I'm doing a M-! tar -xvf <filename>, however I feel like there is be an easier way.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

If you use dired extensively you should take a look at Dired Extra (it comes with Emacs), it has a feature that allows Emacs to guess what to do with files, e.g. just press ! with the archive selected and the prompt will suggest tar xvf, so a simple Return will do the job.

Just add this snippet to your ~/.emacs to load dired-x together with dired:

(add-hook 'dired-load-hook (function (lambda () (load "dired-x"))))
share|improve this answer
add comment

Check this EmacsWiki page, it points towards a dired-tar package that should do what you want: http://www.emacswiki.org/emacs/DiredPower#toc4

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.