Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 115

Use this tag for questions about moving, deleting, or opening files. Or for questions about the difference between a buffer and its file. For topics such as "Saving Files", use "buffers" instead.

3
votes
Copying the name of file in the current buffer Here is a function I use from Cameron Desautels' blog that copies the current buffer file name and displays it in minibuffer. ;; Source: http://camd …
answered Oct 30 '14 by Kaushal Modi
1
vote
Based on the conversation in the comments to the question and suggestion by @Drew, below solution should work for you. (register-file-header-action "Version[ \t]*: " 'my-update-version-count) (defun …
answered Jul 10 '15 by Kaushal Modi
6
votes
What causes files to automatically become executable Emacs auto-sets the file permissions to 0755 when the following 2 conditions meet: The file has hash-bang/shebang #! at the start of file. The … permissions to my shell and perl scripts. I think that the 0755 permission is auto set for you only for the files that have something like #!/usr/bin/env rustx in the beginning of the file and you …
answered Nov 15 '14 by Kaushal Modi
7
votes
For ido users Do C-x C-f (which should call ido-find-file) and enter a non-existent path. Press M-m (mnemonic for make new dir?). Hit RET. Continue with typing the new file name that you want to cre …
answered Sep 29 '14 by Kaushal Modi
5
votes
For ido users Add the below to your config and then C-x C-f (which should be executing ido-find-file automatically with ido-mode enabled) on such file paths will open those files directly. (setq … ido-use-filename-at-point 'guess) For ivy/counsel users Add the below to your config and then M-x counsel-find-file (which you can conveniently bind to C-x C-f) on such file paths will open those files directly. (setq counsel-find-file-at-point t) …
answered Jul 29 '15 by Kaushal Modi
114
votes
M-x revert-buffer will do exactly what you want. It will still ask for confirmation. Another option (my favorite) is the below function: ;; Source: http://www.emacswiki.org/emacs-en/download/misc-cm …
answered Sep 24 '14 by Kaushal Modi
3
votes
Your attempt 1 is almost correct. Your attempt 3 will also work with the same fixes I have done below. Here are the two things that needed to be fixed: You do not quote the function you are calling …
answered Jul 13 '15 by Kaushal Modi
2
votes
from this stackexchange the elaborate on the use of ag in emacs: What is the easiest way to search all useful files inside a single project? Is there a way to use query-replace from grep/ack/ag output modes? …
answered Oct 8 '14 by Kaushal Modi
2
votes
Safe way to tweak an emacs uilt-in or 3rd party function You can always re-define a function defined in the source code. In the emacs SE question How do I disable ffap (find file at point) when the …
answered Nov 7 '14 by Kaushal Modi
3
votes
try using the projectile package, also available through Melpa. For projectile to work on your set of files, you need to define that set as being a part of a "project". The easiest way to do so is by … doing git init in the base directory of your "project" i.e. org directory. You can do this even if you don't plan to later git manage your files. Once you have projectile set up as per its …
answered Jan 18 '15 by Kaushal Modi
3
votes
Here is one way to implement this but you will need to first install the neotree package from Melpa. Then put the below in your emacs init. (defun modi/find-file-next-in-dir (&optional prev) "Open …
answered May 5 '15 by Kaushal Modi