Commit Graph

116 Commits

Author SHA1 Message Date
Miciah Masters 1a49c01c82 rcirc: Move defaults to :init to be overridable
Move setq forms in init-rcirc from the :config block to the :init block
in order to enable users to override settings in user-config.
2018-01-14 22:50:28 -05:00
syl20bnr 41e546f040 Move all use-package hook declaration to pre-init functions
Had to create dummy init functions at some places since the owner of a package
is the last layer that defines the init function of a package. And a package
can be installed only if it has an owner.
2018-01-10 23:57:18 -05:00
Miciah Masters 64c212941e Fix errors in rcirc and slack layers
Fix errors that were introduced into the rcirc and slack layers by
commit fea035f413.

Change the header for the slack layer's funcs.el to refer to the correct
layer.

Change the custom layout definition for rcirc to use the correct name
and binding for the layout and the correct invocation for rcirc.
2018-01-10 22:09:47 -05:00
syl20bnr fea035f413 Make custom layout configs consistent
Use a use-package hook and avoid using lambdas.
Use same naming for all config.
2018-01-09 23:01:34 -05:00
syl20bnr 46c5dfa4a7 cl-loop instead of loop 2018-01-06 21:38:13 -05:00
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
Miciah Masters 27699fc678 Delete rcirc-reconnect in favor of built-in cmd
Fix issue #9981: rcirc /reconnect command reverts to default port.

rcirc has included a built-in /reconnect command since Emacs 25.1, which
makes the rcirc-reconnect package shipped with the Spacemacs rcirc layer
superfluous.

Modify the rcirc layer's initialization not to load rcirc-reconnect, and
delete rcirc-reconnect from the layer's local packages.
2017-12-17 19:43:10 -05:00
CeleritasCelery e32acfbf3b Fixed feature header 2017-08-29 20:00:44 +03:00
syl20bnr 82220fce3a Remove old wording "contribution layer" 2017-08-28 11:33:55 -04:00
syl20bnr e7205e0097 erc: update documentation for layer variables 2017-08-27 22:54:04 -04:00
Evan Klitzke 8491304371 Conditionally enable ERC notifications via erc-enable-notifications
Enable ERC notifications only when erc-enable-notifications is non-nil; the
default configuration for the variable is t.
2017-08-27 21:56:39 -04:00
J. Patrick Lanigan df7af0ad20 Fix features format in misc README.org's
See #9346
2017-08-22 21:27:13 +03:00
JAremko 06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
Benjamin Reynolds a0cdccace9 Fix documentation issues with slack and emoji layers
See #9346
2017-08-04 21:37:59 +03:00
Eivind Fonn f4b53d2a4f Rename :depends to :requires 2017-07-03 09:54:53 +02:00
syl20bnr e2e532bb49 core: change <function>p to <function>-p suffixes for consistency
Also defined aliases for backward compatibility with `usedp` functions.
2017-07-02 10:09:39 -04:00
Evan Klitzke ba17dd9158 Actually configure SPC m b to switch between ERC buffers. 2017-07-01 10:43:41 +02:00
Eivind Fonn 08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
Eivind Fonn 37cdf07e91 rcirc: move defuns to funcs.el 2017-06-18 12:47:11 +02:00
Abdo Roig-Maranges ec2184403b Fix rcirc logging where the channel name has '/' in it
This happens when connecting to gitter via irc.gitter.im, for instance.
It turns out that channels are named like #syl20bnr/spacemacs. For the
logging to work, we need to create the directory #syl20bnr first.
2017-06-18 12:40:10 +02:00
Swaroop C H 0d0f19356f [slack] Add key binding to open message thread 2017-06-10 16:34:00 +02:00
Swaroop C H 01de4d8b0e Mention key bindings in README 2017-06-06 12:27:45 +02:00
Swaroop C H 503fdfac62 [slack] Add key binding for slack-message-remove-reaction 2017-06-06 12:27:43 +02:00
Eivind Fonn 8b7626ddb1 Document new slack binding 2017-05-28 15:03:08 +02:00
Swaroop C H 7b8324209c [slack] Add key binding to add reaction 2017-05-28 15:02:25 +02:00
Kristoffer Haugsbakk 79ed1a6b4b Use proper markup for code in readmes
By convention, code markup (`~`) is reserved for keybindings in Org-based
documentation in Spacemacs.  Verbatim markup (`=`) is reserved for code and
other code-like things.  So change several readmes to reflect this convention.

Use verbatim markup for things like (non-exhaustive list):

- Emacs Lisp functions, modes, buffers, etc.
- Environment variables
- Directory paths
- Code in general
2017-05-24 11:57:17 +02:00
JAremko 6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
syl20bnr a213729981 slack: update documentation 2017-05-07 22:22:27 -04:00
syl20bnr 84fa5a6f8a slack: make the layer depends on emoji layer and move emojify config 2017-05-07 21:37:01 -04:00
d12frosted eb2f736ee5 setup emojify cache directory 2017-05-07 21:33:33 -04:00
Benjamin Reynolds 90d9980878 Allow customization of slack custom layout name and binding
This commit adds two configuration variables to the slack layer allowing a user
to customize the name and keybinding of the slack custom layout, following the
conventions from the erc and mu4e layouts.
2017-05-07 21:11:37 -04:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
Benjamin Reynolds 8131ed977a Add various slack keybindings
The only readily available keybinding for joining channels in slack is for
joining public channels. This commit adds bindings for joining private
channels, (called groups in emacs-slack) as well as a keybinding for
slack-select-rooms which allows joining a channel, group, or DM.

This commit also rebinds the major mode `k` to slack-select-rooms, which puts it
more in line with how the related keybinding in the slack client works.
2017-04-28 22:29:43 -04:00
nikolaiam 4c6968c297 Fix notation inconsistencies in .spacemacs.template
Replace all instances of <Something x y> with `Something x y', add to missing
2017-04-17 23:17:35 -04:00
Jelle Licht fe4726cd12 rcirc: Fix using multiple .authinfo lines for authentication.
The auth-source-search function has an implied :max parameter with value 1. In
the case of connecting to multiple irc servers, only the first line in .authinfo
was applied. Thus, we should pass a value for :max to auth-source-search that is
guaranteed to at least be able to fit all our credentials.
2017-04-09 22:50:12 -04:00
Robert O'Connor e9ff9f09c6 Remove trailing whitespace from all files 2017-03-26 13:06:43 -04:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr 74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
Kristoffer Haugsbakk 3a61f8e6de Add verbatim markup to paths
By convention, filepaths are marked up with `=`.  Also add this markup to the
string `ViewLogMode`.
2016-11-25 12:23:39 +02:00
Florian Gilcher d986068c3d Fix minor typo 2016-11-14 14:40:53 +02:00
Andrew Stevanus c87832b6a9 Fix connecting to default servers with TLS more than once with ERC
The erc//servers function removes the :ssl variable from the list so it
can be passed directly to erc-tls, but this means that subsequent
connections will not use TLS. Thus, we should operate on a copy of the
list instead.
2016-10-17 13:28:07 +02:00
syl20bnr 703f78c2b8 Cleanup pass on file spacemacs-base/funcs.el
- Apply `/` and `//` rules (double / is for private functions)
- Add missing `spacemacs/` prefixes
- Move functions used outside of spacemacs-base layer to
  core/core-funcs.el
- Remove unused functions

Commit originally intented to only rename linum-update-window-scale-fix
to spacemacs/linum-update-window-scale-fix :-)
2016-10-09 13:14:41 -04:00
Eivind Fonn 2ef2a965dc Update erc doc
At the moment, no yank or gitter

[ci-skip]
2016-08-17 19:52:35 +02:00
Exaos-memes 904f7ea665 Define new variable: spacemacs-start-directory.
With this new variable, user can load spacemacs anywhere, e.g.
"~/.emacs.d/spacemacs/". Only user's cache directory is still hard-coded
as "~/.emacs.d/.cache/". If user want to use spacemacs this way, drop
one line as the below in "~/.emacs.d/init.el":

    (setq spacemacs-start-directory "~/.emacs.d/spacemacs/")
    (load-file (concat spacemacs-start-directory "init.el"))
2016-06-23 00:19:34 -04:00
syl20bnr 2738724ed4 erc, html and pdf-tools: use :evil-leader-for-mode in transient states 2016-06-17 23:40:06 -04:00
syl20bnr cb6754f231 Remove packages without any init functions 2016-06-10 20:53:24 -04:00
syl20bnr 81fbb9a292 Format README files with spacefmt 2016-06-10 00:09:42 -04:00
syl20bnr 56844ce5da jabber: simplify layer and create funcs.el file 2016-06-07 23:26:24 -04:00
Tosh Lyons dd1c2d5e65 jabber: don't overwrite mini-buffer when active
jabber has the annoying habit of overwriting the mini-buffer with status
messages
2016-06-07 23:25:44 -04:00
syl20bnr 3130cc6f2e Move slack layer to +chat directory 2016-06-04 00:20:36 -04:00
syl20bnr a4db13e3a6 erc: use linum post init and remove weird erc-hook
the usage of undocumented erc-hook is weird, let's see if we need it.
2016-06-03 22:20:30 -04:00
syl20bnr 3359efcb8e erc: Quote arguments to with-eval-after-load 2016-05-30 20:58:09 -04:00
Diego Berrocal a4cd306558 Breaking Bug Fix ERC related errors 2016-05-30 20:58:09 -04:00
syl20bnr a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
sooheon 15e6290151 Make check for company-mode explicit, not implicit
People may have company-mode installed without necessarily using the
auto-completion layer.
2016-05-27 00:32:05 -04:00
syl20bnr e4b7536510 Remove smooth scrolling from packages list 2016-05-22 10:00:57 -04:00
Allen Li a9c95142b9 Remove smooth scroll margin
User changing the scroll margin should handle these cases themselves.
2016-05-22 09:58:40 -04:00
syl20bnr 1f993bddf6 Rename spacemacs-helm and spacemacs-ivy layers to helm and ivy
For ivy users: be sure to update your dotfile by replacing spacemacs-ivy
by ivy
2016-05-15 22:24:27 -04:00
syl20bnr 07852abad5 Format documenation files with doc-fmt tool 2016-04-12 23:31:38 -04:00
Eivind Fonn e6948533df Fix erc/README.org 2016-04-08 18:06:43 +02:00
Eivind Fonn 9e1909f5e0 Move erc/funcs.el to new folder, add header 2016-04-08 18:05:24 +02:00
Jack Henahan 5bde687d07 Add default server list to ERC layer 2016-04-08 17:48:54 +02:00
Mingshen Sun 002e8598b9 jabber: evilify the key bindings 2016-04-07 22:59:31 -04:00
syl20bnr 5edc364695 erc: lazy load a bunch of package by leveraging use-package hooks 2016-04-03 00:37:20 -04:00
syl20bnr 3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
syl20bnr 9d0558992c layers directory: create new categories
+chat
+checkers
+emacs
+intl
+os
+pair-programming
+tags
+theme
+web-services
2016-03-23 21:39:43 -04:00