Commit graph

48 commits

Author SHA1 Message Date
d12frosted 98b329e741 move system-is-* function to core 2016-03-31 00:23:59 -04:00
Eivind Fonn 47789270d9 Don't nest `when' 2016-03-12 17:45:41 +01:00
Muneeb Shaikh 6c17e3bc3a fix #5448: guard nil buffer size 2016-03-11 17:00:13 +05:30
ralesi 3f376a431b Prompt to open file literally when opening large files. 2016-03-10 23:13:19 -05:00
justbur 39e06feba9 Use unless-debug version of condition-case
It's not possible to get full backtraces in these instances when an
error is signaled, and I think we should generate full backtraces when
debug-on-error is enabled as a general rule.

I had to make this change at one place to track down the root of problem
2 in #5200.
2016-03-03 20:30:30 +01:00
Beau Dacious a54c637480 create align-repeat-backslash command 2016-02-27 14:57:06 +01:00
justbur 5402261456 Improve toggle-maximize-centered-buffer
1. The register name should be a character not a symbol.

2. Combine toggle-maximize-centered-buffer and bzg-big-fringe-mode to
   make new minor mode that combines the two effects.

3. Fix problem where the mode could only be enabled if there was more
   than one window, which makes no sense.

4. Use window-configuration-to-register function
2016-02-25 20:34:40 +01:00
Eivind Fonn 06c35c30ab Re-add yaml-mode as sensitive mode 2016-02-23 20:53:44 +01:00
Robert O'Connor c2f216cbd7 Fixes #5106
Add haskell-mode to the spacemacs-indent-sensitive-modes list; also
makes the lost alphabetical
2016-02-23 20:53:13 +01:00
justbur 85a7cd9b5b Fix toggle-maximize-buffer
Was using the symbol _ as the name of a register when the docs for
register-alist state that the name of a register should be a character.
2016-02-16 22:45:49 -05:00
Eivind Fonn a111f4802d Don't change scratch major mode if buffer exists 2016-02-10 20:28:03 +01:00
Eivind Fonn 8d60b15ccf Move projectile-shell-pop to shell layer 2016-02-02 16:42:58 +01:00
Fabien Dubosson 010444cdc7 Add projectile-shell-pop and bind it to SPC p '
This allows to open a shell at project's root
2016-02-02 16:36:39 +01:00
bmag 407f98a1c8 Ensure new workspace/layout only shows home buffer
Previous code would show two windows when invoked from a window that is
dedicated to its buffer: the home buffer and the dedicated buffer.
2016-01-31 23:19:39 -05:00
Igor Avdeev 41284a740b Update recentf after file renaming
Delete old filename from a list and append a new one.
2016-01-31 22:21:16 -05:00
Xue Fuqiao 9dfc1d93aa Doc fix for spacemacs/show-and-copy-buffer-filename 2016-01-26 01:21:02 -05:00
Balaji Sivaraman ab109b1eb2 Add keybinding and evil-ex-cmd string for spacemacs/new-empty-buffer fn 2016-01-18 00:31:21 -05:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
Eivind Fonn d8833215b0 Make scratch buffer major mode configurable 2016-01-11 01:13:10 -05:00
syl20bnr ea333f7282 completion: move hjkl function to layers and treat ivy as a package 2016-01-09 15:29:37 -05:00
justbur 4872c711a2 spacemacs-ivy: Fix imenu jumping for ivy split
Make spacemacs/jump-in-buffer aware of ivy and move jI into the
spacemacs-helm layer
2016-01-09 13:36:03 -05:00
Alexandr Skurikhin e64555d9d3 Map <escape> to minibuffer-keyboard-quit in ivy-minibuffer-map 2016-01-09 13:36:03 -05:00
justbur 32f523e062 spacemacs-helm: New layer
Collect helm configuration from spacemacs and spacemacs-base into one
place. The purpose is to allow choice between this layer and
spacemacs-ivy.
2016-01-09 13:36:03 -05:00
Christoph Paulik ab0abb823c Remove custom write-file function, use save-buffer
Could not find a use case where the custom function performs differently
it is just missing functionality for indirect buffers.
2016-01-03 22:23:11 -05:00
syl20bnr a5022743e5 core: remove dash and f from boostrap and attempt to remove evil
Cannot remove evil due to bind-map requiring it.
2015-12-20 23:00:09 -05:00
Sebastian Wiesner 3aa8e755dd Compare system-type as symbol
As per documentation, system-type holds a symbol denoting the OS type; let's treat it as such.
2015-12-12 10:58:12 +01:00
syl20bnr 4a6fd1b364 core: hide mode-line at startup 2015-12-11 03:07:15 -05:00
justbur f2878d594a core: Factor out spacemacs-buffer creation
Factor out the code related to creating the spacemacs buffer, so that it
can be recreated easily if it gets deleted.
2015-12-11 02:25:19 -05:00
Daniel Luna cf11545cc4 spacemacs/sudo-edit working on remote ssh buffers with multi-hops 2015-12-11 02:11:32 -05:00
Fabien Dubosson 6def1a480b Use hl-todo for TODOs/FIXMEs highlighting
The current way to highlight TODOs is `spacemacs/highlight-TODO-words`
which is a spacemacs' hard-coded function.

This commit changes it for the `hl-todo` package. This imply:

- More keywords are supported out of the box.

- Keywords are associated to faces, so they are shown in different
  colors.

- Keywords are stored with their faces in a list, so it's easier for
  users to add their own keywords and faces (as contrary to a regexp).

- It is possible to disable highlighting by simply excluding the
  package.
2015-12-07 19:39:38 +01:00
Eivind Fonn 4870030ba1 Auto-set evil-shift-width based on mode settings 2015-12-01 02:19:56 -05:00
Eivind Fonn a13486d2d2 Delimit TODO keywords as words
words like “HACKER” becoming partially highlighted
2015-11-18 16:32:14 +01:00
Christoph Paulik 9726033515 Don't use ido for sudo-edit of new files and bind key 2015-11-15 12:19:25 +01:00
Eivind Fonn 38e48aa95d Highlight TODO keywords in all prog modes
Also make the colon optional
2015-11-14 00:34:05 -05:00
Joe Hillenbrand 3b6fd59245 Add SPC c q to close the compilation window
I found it annoying to have to re-navigate to the *compilation* window
and close it after every time I compile with `SPC p c`.

This patch adds a binding to make closing this window fast and easy.

Also a little bit of clean up.
2015-11-13 13:55:53 +01:00
geksilla c39e8a9e53 Switch between columns layout toggle golden-ratio.
While columns layout change between 2 and 3 golden-ratio-mode toggle but
should not.

Fixes syl20bnr/spacemacs#3750.
2015-11-10 22:48:56 +01:00
syl20bnr aed1811f76 perspectives: big refactoring
- Rename micro-states to "layouts"
- Rename some functions to include "layout" instead of "perspective"
- cleanup variables
- move functions to funcs.el
- move package specific stuff to post-init functions
- changes key bindings
- micro-state documentation rewrite
- change format of the layouts line in the micro-state doc
- defer loading of persp-mode which loads with `SPC l`
- always display the spacemacs home buffer with no switch
- various fixes
- various new bugs :-)
2015-11-09 00:36:09 -05:00
Eivind Fonn 0567f5cdac Fix spacemacs/kill-other-buffers 2015-11-03 13:53:10 +01:00
Fabien Dubosson 81952b0977 Declare spacemacs/write-file as not repeatable
Close #3433.

`evil-repeat` repeat the last action, but ignore calls to `write-file`
or `evil-write`. `spacemacs/write-file` is a wrapper around those two
function, so it should be ignored to.
2015-10-25 10:47:57 +01:00
Eivind Fonn 50e1f3ea3f Move compilation-scroll-output to config.el 2015-10-25 10:46:47 +01:00
Joe Hillenbrand 76b795d17e setq compilation-scroll-output first-error
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Compilation.html
2015-10-25 10:44:48 +01:00
Driftcrow 31e0976742 Fix SPC j k unwanted auto-comment
When the cursor is on a commented line, the next indented line was
commented as well.
2015-10-19 00:22:06 -04:00
justbur 44cb780f25 emacs-lisp: Use auto-compile package
Also add key bindings for compiling and showing the compile log.
2015-10-18 23:59:47 -04:00
Fabien Dubosson e5dbfa0032 Add switch-to-scratch-buffer function and bind it
This change add a `switch-to-scratch-buffer` function allowing to – you
guessed it – switch to the `*scratch*` buffer, taking care of creating
it if necessary. The function is bind to `SPC b s`, `b` as it concerns
buffers, and `s` for `scratch`.
2015-10-12 09:34:46 -04:00
Pierre Radermecker f3f88b4d28 Fix #3214: add back split-window-and-switch func
Theses func came back from the old spacemacs/funcs.el file
2015-10-09 12:08:40 +02:00
Andrew Burkett cb65a9adaf Remove server-kill-buffer from frame-killer 2015-10-07 15:51:40 -04:00
Fabien Dubosson 66bd2d326e Improve count-words-analysis output
The `spacemacs/count-words-analysis' function displays results with the
default elisp formatting of associative list. This change improves it by
changing the format to a more human-readable form, and also by ordering
results by frequencies first, and then alphabetically in case of tie.
2015-10-07 15:51:39 -04:00
Robert O'Connor 3f2e885811 Rename spacemacs-core to spacemacs-base
Per the discussion in #3002. A comment in #3047 prompted this PR.
2015-09-16 21:22:35 -04:00
Renamed from layers/+distribution/spacemacs-core/funcs.el (Browse further)