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
A better interface for getting information about major mode features. It can
complement the built-in "C-h m" (describe-mode): "C-h m" can be thought of
a full mode help, while discover-my-major a quick mode help, in the following
ways:
- Show key binding with description
- Cursor is automatically switched to discover-my-major help buffer, and to quit
the help buffer, simply press 'q'. In stock "C-h m", user has to manually switch,
scroll up/down to look for major mode commands. Finally, user closes the buffer
either by "C-x 0", or winner-mode undo (C-c <left>), which requires more key strokes.
- Display just enough information. In "C-h m", it displays every thing, from
major mode to minor modes, enabling minor modes and description of every modes.
- More polished user interface.
It's also better than smex-major-mode-commands, since smex-major-mode-commands
does not show key bindings and description.