open a zipped file in Dired - emacs

I'm looking for a way to open a file in a zipped file as Vim can do it with its default configuration.
Dired just shows the list of zipped files but cannot open it while vim can do.
Do you know how to make it work as Vim does? then could I get your tip, please?

It turned out that my Evil mode overrides that key-bindings which was 'archive-extract'. Well if you know how to recover this to that macro, please let me know.
I've tried with my shallow elisp knowledge but failed. Please.

Related

Remove an attachment in emacs org-mode, rather than deleting it

I can only see commands to delete a tasks attachments in org-mode after calling the dispatcher with C-c C-a. Is there a way to simply unattach these files (or directory) from the project or task? Thanks in advance.
org-mode's ways of attaching things is putting them in a folder
associated with the heading.
To my knowledge, there's no way to do what you ask with this system:
a file either is in a folder or it isn't.
On the other hand, you could open the attachment directory
with C-c C-a f and move this file where ever you want.
To org-mode's knowledge, it will be deleted.

How do I view a web-based file in emacs?

Say I've got two web based xml files that I would like to diff (test output vs. baseline). My current work-flow is to manually download the files to a temporary folder and load them into Emacs for diffing. I'm pretty sure there are better ways to do this but I'm stumped, especially as all the Emacs functions seem to open the URL in a browser,
Any solutions \ suggestions greatly appreciated.
As that answer suggests, browse-url-emacs should do the trick.
I personally use (url-handler-mode 1) so you can visit a web page with C-x C-f http://foo/bar RET.

Automatically opening a file in emacs by specifying the file name

I created a TAGS file for emacs in my django project using the following command on my Linux machine
ctags -eR *
I can now jump to a symbol definition using M-. and specifying the symbol name.In my project i have py,html and css files so is there also a way i can make emacs automatically open a file, if i specify the file name ?.
Thank You
I think you are looking for project management. There are few packages to manage project directory in emacs. The best one may be ede. but Its not easy to setup. It does have some learning curve and its limitations.
Thankfully there are many easy ones. like eproject. https://github.com/jrockway/eproject/wiki
anyway you can also check out emacswiki page for more details. http://www.emacswiki.org/ProjectSettings
http://www.emacswiki.org/emacs/find-file-in-tags.el
IDO (Interactive Do) mode does this. If you activate it, C-x C-f searches for files matching what you are typing, interactively. Beware though, it may take some time to get used to it.
[edit] The search is based on files or directories you've recently visited, and you can use M-s to force a search.
From the comments, I figured that you are looking for has nothing to do with tags, you just want a better find-file that makes good automatic guesses for the path given only the file name.
For this, I use the entirely awesome ido-mode: http://emacswiki.org/emacs/InteractivelyDoThings

Does Emacs ECB can refresh the directory automatic?

When I open emacs in my workspace, and I rename one directory in shell, Does ECB can refresh the directory tree automatic ? If not, which shortcut key will help ? thanks!
I think the short answer is no - it's not possible to make ECB scan directories for arbitrary external changes via customization. It would require some coding to implement this feature.

How do I open a .diff file on a mac?

I have a .diff file but I don't know how to open it. I trie using FileMerge but that doesn't give me an option to open a .diff file.
Any ideas? Thanks.
Diffs are just plain text. You should be able to open it with TextEdit or any other text editor. If you want syntax highlighting probably many of the fancier editors could do that. I just used Aquamacs Emacs to load a diff file and it provided some highlighting.
And if you want to ‘apply’ the diff to a file, use the patch command, like in SanHolo's answer.
Use patch from the command line, like you would on a Linux box.
patch original_file.c diff_file.diff
Edit:
I'm assuming that with "open" you mean to apply the diff file to the original. If you just want to take a look at the file, see Chris' answer.
Vim offers coloration for diff files. If you'd rather go graphical, use MacVim (which is free) or TextMate (not free).
TextMate
MacVim
Vim
Kompare opens .diff in convenient view