Commit graph

94 commits

Author SHA1 Message Date
toctan
2d11c0bc4b A better prelude-view-url
- remove HTTP headers, what we care most of the time is the content
- `set-auto-mode` is way better than the naive xml, html tag check
2014-07-30 20:46:19 +08:00
toctan
2f22cb2684 Fix editing remote unwriteable file
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.
2014-07-30 20:16:12 +08:00
Daniel Wu
6c337b21a0 fixed a bug in prelude-create-scratch-buffer 2014-07-25 08:03:13 -04:00
Jory Graham
e1f9016432 Use the phrase 'open a line' in both tips 2014-07-15 20:34:10 -04:00
toctan
4dab9a193a Respect initial-major-mode creating scratch buffer 2014-07-01 20:50:17 +08:00
toctan
491bc0617f Do not indent region with indent sensitive modes
- 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.
2014-06-25 10:21:51 +08:00
toctan
d226fd63f7 Clean up prelude-cleanup-buffer code
- 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
2014-06-25 10:21:51 +08:00
toctan
ba2272a690 Prefer advice over remap exchange-point-and-mark 2014-06-08 13:18:06 +08:00
toctan
ab6ecdedfd Do not deactivate-mark if region active 2014-06-08 12:54:24 +08:00
toctan
0e75110769 Rename buffer not visiting files 2014-06-04 20:11:18 +08:00
Bin Huang
9b7e0b6ce4 1. Rename prelude-indent-region-or-buffer to prelude-indent-buffer-or-region.
2. Add prelude-cleanup-buffer-or-region.
3. Add prelude-untabify-buffer-or-region.
4. Update menus and kbds.
2014-05-31 01:56:38 +08:00
Bin Huang
81953ad033 Move the prelude tips for key-chord-mode to it's module file. 2014-05-29 17:16:05 +08:00
Bozhidar Batsov
db2dcb82e4 Merge pull request #525 from bixuanzju/2-commits-squashed
Simplify `prelude-annotate-todo`, make it evaporate when modified.
2014-05-26 09:44:37 +03:00
Tu Do
5bf38b05da Add operate-on-number
Replace prelude functions for increment and decrement of numbers.

Signed-off-by: Tu Do <tu.h.do@dektech.com.au>
2014-05-21 13:07:33 +07:00
Geoff Shannon
ab06782c9b Make prefix argument optional
It seems to be the general style of how prefix args are done...
2014-05-15 13:54:38 -07:00
Geoff Shannon
3896e421d0 Find user-init-file when given prefix arg 2014-05-15 13:48:24 -07:00
Geoff Shannon
c380a3f001 Update prelude-find-user-init-file docstring
To reference the variable that it actually pulls from now
2014-05-15 13:36:58 -07:00
Geoff Shannon
57ef5bb249 Add new prelude custom variable for user-init-file
This way the prelude-find-user-init-file can actually take you to a
useful file (instead of to init.el)
2014-05-15 13:36:57 -07:00
Daniel Wu
7f6969cc3b made prelude-open-with work in dired mode 2014-05-14 21:40:00 -04:00
Jeremy Bi
d82fc1f45f Simplify prelude-annotate-todo, make it evaporate when modified. 2014-04-27 23:46:08 +08:00
Zhitao Gong
5d8fd5c35a annotate TODO in comments 2014-04-19 15:28:37 -05:00
Jeremy Bi
1c93689701 Attempt to refactor two "duplicate" functions.
Attempt to extract a generic function `prelude-get-positions-of-line-or-region` from `prelude-duplicate-current-line-or-region` and `prelude-duplicate-and-comment-current-line-or-region`
2014-03-20 11:05:40 +08:00
Antoine R. Dumont
f83428f9f3 Add binding C-c U for DuckDuckGo search 2014-01-14 08:41:15 +01:00
Antoine R. Dumont
7cca7f718e Add DuckDuckGo search engine in the default list. 2014-01-11 19:17:59 +01:00
Antoine R. Dumont
8e573e1eb8 Factor the search engine installation to ease the future install of new ones. 2014-01-11 19:16:04 +01:00
Bozhidar Batsov
fa6795b71f Improve prelude-eval-and-replace 2013-12-21 22:15:52 +02:00
Bozhidar Batsov
8217618525 Simplify sexp wrapping code 2013-12-07 09:14:44 +02:00
Bozhidar Batsov
7507cecb9f Fix epl-upgrade invocation 2013-12-07 01:21:54 +02:00
Bozhidar Batsov
c65b4ca336 Add prefix arg support prelude-update-packages
With a prefix arg it will update all installed packages.
2013-12-07 01:01:54 +02:00
Bozhidar Batsov
3cc9ad7400 [Fix #444] Add command prelude-update-packages 2013-12-06 16:31:58 +02:00
Bozhidar Batsov
b9000702b2 Replace mentions of WikEmacs with EmacsWiki 2013-11-19 13:52:27 +02:00
Bozhidar Batsov
523a4851a6 Extract Helm support into a separate module 2013-11-03 23:37:40 +02:00
Bozhidar Batsov
3c8c7dec05 Do an automatic package upgrade in prelude-update 2013-10-22 15:37:05 +03:00
Dillon Kearns
155737c85d Pass prelude-kill-whole-line input as number ("p") 2013-10-03 08:00:23 -07:00
Bozhidar Batsov
3c8f0c7f98 Add prelude-find-shell-init-file 2013-09-27 11:36:47 +03:00
Bozhidar Batsov
879d3f3470 Add prelude-find-user-init-file 2013-09-27 11:18:47 +03:00
Bozhidar Batsov
580628fc98 [Fix #391] Ask for confirmation before deleting a file that's not under VC 2013-09-18 11:49:57 +03:00
Bozhidar Batsov
121ad02843 Use move-text to allow moving up or down of the selected region as well 2013-09-17 13:24:03 +03:00
toctan
c0727a8404 Add prelude-github
Conflicts:
	core/prelude-core.el
2013-09-16 09:37:54 +03:00
Bozhidar Batsov
7cae1b3427 Add new command prelude-youtube 2013-08-26 17:58:02 +03:00
Bozhidar Batsov
69861a33a0 Clean up updated prelude-open-with 2013-08-09 12:16:42 +03:00
C.Li
5eb8bf5143 open file in new session, new process 2013-08-07 20:49:21 +08:00
Bozhidar Batsov
9a26a09e78 More tips 2013-07-26 17:54:20 +03:00
Bozhidar Batsov
69e5ab693c Refine fullscreen support 2013-07-26 17:36:18 +03:00
Fidel Ramos
1abba58332 Restrict fullscreen feature to X-based systems.
Recent Emacs in OSX already comes with fullscreen support.
2013-07-26 14:17:34 +02:00
Fidel Ramos
f77ad4d854 Add command to make Emacs window fullscreen.
Default keybinding is F11. The command follows freedesktop standards,
so it should work on most desktops, at least in GNU/Linux systems.
2013-07-25 19:01:02 +02:00
Bozhidar Batsov
93c94a6f82 Add commands to increment and decrement an integer at point 2013-07-25 15:51:01 +03:00
Bozhidar Batsov
dd329a53f7 Add a few more tips 2013-07-23 16:51:02 +03:00
Bozhidar Batsov
88248111d1 Add prelude-duplicate-and-comment-current-line-or-region (fixes #348) 2013-07-13 14:15:16 +03:00
Bozhidar Batsov
e12d5fbf51 Minor cleanup 2013-07-08 12:49:35 +03:00