Commit graph

3288 commits

Author SHA1 Message Date
syl20bnr 53271caa5b Named function hooked to diff-mode-hook 2015-05-07 00:49:32 -04:00
Tu Do fb743fc5e7 Enable whitespace-mode for diff-mode
Since diff-mode is where we review our patch, it would be nice to review
whitespace as well, so we don't add unneeded characters.
2015-05-07 00:37:48 -04:00
Tu Do 8e338adf74 Beautify whitespace highlighting
The current whitespace faces make whitespace-mode too distracting to
read with too many background colors. This commit removes the annoying
colors for whitespace-space, whitespace-tab and whitespace-indentation
because:

- whitespace-tab and whitespace-space already use characters for
  visualizing their appearances. whitespace-tab uses ">>" while
  whitespace-space uses ".". Adding background colors is redundant and
  annoying. Editors like Notepad++ or Vim doesn't use background colors
  to depict such whitespace characters.

- According to the documentation of whitespace-indentation:

"Symbol face used to visualize 8 or more SPACEs at beginning of line.
Used when `whitespace-style' includes the value `indentation'."

It is used for highlighting first 8 characters or some customized
value. We must also disable its background colors otherwise our buffers
are still filled with annoying colors all over the places, since often
indentation is around 8 spaces or less. Anyway, with whitespace-space
and whitesspace-tab, such highlighting like whitespace-indentation is
redundant and not needed.
2015-05-07 00:37:42 -04:00
syl20bnr 18762615ae Actually add the emacs-lisp folder :-) 2015-05-07 00:31:13 -04:00
syl20bnr 6238c7dfad Update release note with new emacs-lisp layer 2015-05-07 00:30:44 -04:00
syl20bnr 36eca4419b New layer: emacs-lisp 2015-05-07 00:13:13 -04:00
Tu Do 760fa0dbe4 Make trailing whitespace less distracting and optional
By using font-lock-comment-face, it's less distracting than the default
bright red, since comment face is designed to be subtle.

Also allow users to turn it off by adding an option
spacemacs-show-trailing-whitespace.
2015-05-06 23:34:49 -04:00
Tu Do db47cead53 [Fix Smantic layer] Load srefactor-lisp
Otherwise the symbol definition is void and the commands can't be
executed.
2015-05-06 22:46:18 -04:00
Jean-Christophe Petkovich 4a9083a109 Fix package loading in lang/ess
Originally `load-ess-on-demand` used `use-package` for the purposes of
actually loading `ess-site` and related elisp for dealing with R. But
since `use-package` doesn't return true or false when a package is
actually successfully loaded anymore, and the semantics of how it will
work aren't precisely clear, it makes sense to use `require` here
instead.

    (defun load-ess-on-demand ()
      (interactive)
      (-all? '---truthy? (list
                          (require 'ess-site)
                          (require 'ess-R-object-popup)
                          (require 'ess-R-data-view))))

All the normal hooks setup by `use-package` will work as normal. I
actually don't see a reason we should use `use-package` instead of
`require` in this specific instance. Since `use-package` often defers
loading packages, it's arguably clearer to use `require` in this
particular instance.
2015-05-06 22:27:38 -04:00
Matthew Lyon 4e23326db0 New org-mode leader keys for narrowing
SPC m n      org-narrow-to-subtree
SPC m N      widen
2015-05-06 22:26:50 -04:00
Tu Do 128a420a4f [Fix] Disable company-tooltip-flip
Currently by default company knows when to flip the popup. However, when
the above option is set to t, it causes a strange behaviour: when the
tooltip is flipped, press down (i.e. M-n or arrow key) go up and press
up (i.e. M-p or arrow key) go down.
2015-05-06 22:23:53 -04:00
syl20bnr d149c5beae auto-completion layer: rename auto-completion-sort-by-usage
to auto-completion-enable-sort-by-usage
When it is possible we try to use the verb `enable`.
2015-05-06 22:22:01 -04:00
person808 866f59e41f Add support for company-statistics. 2015-05-06 22:18:48 -04:00
syl20bnr 91e560d415 html layer: move html/init-company-web
This way this package is installed only if auto-completion is used
2015-05-06 22:16:18 -04:00
Diego Berrocal ef2e037c92 Add company-web to web-mode 2015-05-06 22:09:04 -04:00
syl20bnr 1d1772b854 Really fix smart gd and K :-) 2015-05-05 23:20:12 -04:00
syl20bnr 59ff87b10d Fix gd and K in normal state that insert strings in the buffer 2015-05-05 23:08:06 -04:00
syl20bnr 640d8fc19c auto-completion layer: improve implementation of key sequence to complete
default value `auto-completion-complete-with-key-sequence` is now nil
resolves conflict with evil-escape
fixes #1491
2015-05-05 22:32:28 -04:00
syl20bnr 480c6df909 haskell layer: fix haskell-snippets loading
fixes #1471
2015-05-04 00:27:13 -04:00
syl20bnr c634baceec auto-completion layer: rename auto-completion-enable-company-help-tooltip
to auto-completion-enable-help-tooltip
2015-05-04 00:15:58 -04:00
syl20bnr 441fa05f12 auto-completion layer: new UX variables 2015-05-04 00:14:25 -04:00
syl20bnr a931de637d auctex layer: add flycheck support
fixes #1478
2015-05-03 19:18:03 -04:00
syl20bnr b7c8ca7383 haskell layer: add haskell-snippets
Fixes #1471
2015-05-03 12:51:29 -04:00
syl20bnr 8df9108138 Fix iedit-insert state face in vim-powerline 2015-05-03 00:04:33 -04:00
syl20bnr 642cfbd6d9 new vim-powerline layer 2015-05-02 23:51:28 -04:00
person808 c5a266d702 Use eval-after-load in git layer. 2015-05-02 22:33:28 -04:00
person808 8f38841082 Make evil-smart* functions respect leader key. 2015-05-02 22:33:02 -04:00
Tu Do 7d2f36671f Fix helm-spacemacs logic for open layer doc
It is supposed to open plain markdown file inside Emacs when a prefix
argument is supplied and render the markdown file otherwise. Currently,
both actions open the markdown file in a rendered buffer. This commit
fixed the issue.
2015-05-02 22:31:49 -04:00
Michishige Kaito 23bef9e93c Update theme-to-package rules for base16 2015-05-02 22:31:07 -04:00
Miles Steele 9db8726d7d Use non-visual lines for j/k navigation 2015-05-02 22:28:15 -04:00
Yen-Chin Lee afde9f223c dotspacemacs/location should respect dotspacemacs-filepath value
Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
2015-05-02 22:11:55 -04:00
Ryan Phillips 65dc810f8a fix(tmux): add motion state to fix neotree window 2015-05-02 22:02:53 -04:00
Liam Atkinson 538004e9d0 Updated haskell layer documentation to include hasktags package 2015-05-02 22:02:34 -04:00
Craig Eales 65ead73365 Remove unnecessary auto-mode-alist additions
The default auto-mode-alist already has an entry that will use c++mode
for .cxx and hpp files.

("\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\'" . c++-mode)
2015-05-02 22:01:43 -04:00
Tu Do b9a7bc905b Enable c++-mode when opening a .h file the first time
With current configuration, .h file is only associated with c++-mode
only when cc-mode is loaded. So, when a .h file is opened the first
time, it is opened and is applied with c-mode. Only the 2nd time then
c++-mode is properly used.
2015-05-02 21:59:50 -04:00
Diego Berrocal 60a97ea2de [quickfix] Remove Extra parenthesis in condition
Extra parens made the truthness of `t` to not manifest. Important fix
for debugging python.
2015-05-02 21:59:00 -04:00
syl20bnr 113c3bfc58 evilified: Generalize fix for key binding passthrough in visual state 2015-05-02 00:38:48 -04:00
syl20bnr 8a7eb23ae7 Override s binding in magit-status
Fixes #1462
2015-05-01 23:54:48 -04:00
syl20bnr 8a6bcacb09 Correctly complete the selection when pressing jk 2015-04-30 00:35:13 -04:00
syl20bnr 5091f79d4d Remove company-yasnippet backends 2015-04-29 23:54:30 -04:00
syl20bnr e9f09d03e6 [WIP] Implement new auto-completion UX using company and yasnippet
- RET is not used anymore
- TAB complete the common prefix and cycle between candidates
- To complete the selection use C-l or `jk` pressed quickly
- Yasnippet expand uses hippie-expand and M-/ or C-p
2015-04-29 23:49:59 -04:00
syl20bnr e8cbbd2c2e erc layer: edit README and small refactor of packages.el and extensions.el 2015-04-28 00:29:50 -04:00
Diego Berrocal a0de2de807 ERC layer: Many improvements 2015-04-28 00:04:34 -04:00
Mateusz Dobek af7d03021b Add jazz-theme to themes-megapack 2015-04-28 00:03:33 -04:00
syl20bnr b169cb9d43 javascript layer: Move web-beautify on SPC m = to be consistent
with the other layers
2015-04-28 00:02:35 -04:00
Michael Elliott 2ebf56afc1 add web-beautify to javascript contrib layer 2015-04-27 23:59:07 -04:00
Swaroop C H 28103945f0 Mention IRC option for Gitter Chat in README
I have seen requests in the Gitter Chat such as:

> @CJD14: there wouldn't happen to be an IRC channel for spacemacs, would there?
2015-04-27 23:58:02 -04:00
syl20bnr 7e1d9acc56 Update documentation for SPC f e prefix 2015-04-27 23:57:19 -04:00
justbur 0996eb8733 Add function and keybinding to ediff current dotfile with template 2015-04-27 23:54:34 -04:00
Xiang Ji e4d6b5505c Change guide-key/popup-window-position from 'right to 'bottom
in packages.el so that text can always be displayed fully
2015-04-27 23:50:14 -04:00