Most of console-based utilities prints filename in format
"filename:linenumber". So you may wish to open filename in that format.
This little 'advice' can do that. Just call
emacsclient filename:linenumber
and cursor will be positioned on requested line
Kivy is a python framework for building desktop and android apps, it has a specific language called Kv language and files of this language should have `.kv` extension.
Currently, `prelude-open-with` does not work with files whose name has a
space or non-ascii character in it. I guess `shell-quote-argument` is
not needed for `start-process`.
I also refactor the code a little bit, and since we dot not care about
the output of `open`, so I removed the buffer name passed to `start-process`
With the original advice, if we try to find a not writeable file on a
remote machine, the extra tramp prefix would be inserted. As a result,
we actually end up in a blank new file.
With this, after we create a special buffer, the major-mode get set
automatically. For example, we create a new buffer named "ruby.rb",
`ruby-mode` was automatically enabled.
- Rename and move yank indent vars into prelude-custom.el
- Add coffee-mode to prelude-indent-sensitive-modes
- Do not mess up indentation when cleanup with indentation sensitive
modes, such as Python.
- Create a macro `with-region-or-buffer` to replace the prelude wrapper
around `untabify` and `indent-region`
- Remove the function operated on buffers, cause we only need the dwim
one