Closed emad-elsaid closed 6 years ago
The error indicates that there is a command bound to SPC a
. Please run C-h k SPC a
and report the result (it should display a help buffer describing the command that is bound to SPC a
).
When org
layers is not on the liast C-h k SPC a
doesn't produce any output (not used).
When I enable the layer and restart emacs the following function is bound the key sequence
SPC a runs the command org-agenda (found in evil-motion-state-local-map), which
is an interactive autoloaded Lisp function in ‘org-agenda.el’.
It is bound to SPC a, C-c a.
(org-agenda &optional ARG ORG-KEYS RESTRICTION)
Dispatch agenda commands to collect entries to the agenda buffer.
Prompts for a command to execute. Any prefix arg will be passed
on to the selected command. The default selections are:
a Call ‘org-agenda-list’ to display the agenda for current day or week.
t Call ‘org-todo-list’ to display the global todo list.
T Call ‘org-todo-list’ to display the global todo list, select only
entries with a specific TODO keyword (the user gets a prompt).
m Call ‘org-tags-view’ to display headlines with tags matching
a condition (the user is prompted for the condition).
M Like ‘m’, but select only TODO entries, no ordinary headlines.
L Create a timeline for the current buffer.
e Export views to associated files.
s Search entries for keywords.
S Search entries for keywords, only with TODO keywords.
/ Multi occur across all agenda files and also files listed
in ‘org-agenda-text-search-extra-files’.
< Restrict agenda commands to buffer, subtree, or region.
Press several times to get the desired effect.
> Remove a previous restriction.
# List "stuck" projects.
! Configure what "stuck" means.
C Configure custom agenda commands.
More commands can be added by configuring the variable
‘org-agenda-custom-commands’. In particular, specific tags and TODO keyword
searches can be pre-defined in this way.
If the current buffer is in Org mode and visiting a file, you can also
first press ‘<’ once to indicate that the agenda should be temporarily
(until the next use of ‘SPC a’) restricted to the current file.
Pressing ‘<’ twice means to restrict to the current subtree or region
(if active).
I have an explanation for part of the problem. Spacemacs tries to bind a bunch of keys under the \<dotspacemacs-leader-key> a and \<dotspacemacs-emacs-leader-key> a prefixes. You set dotspacemacs-emacs-leader-key
to "C-c"
, so Spacemacs tries to bind stuff under C-c a. The problem is that Org mode already binds C-c a to org-agenda
, so the Spacemacs bindings fail with the error messages you see.
However, that doesn't explain why SPC a is bound to org-agenda
. If I set dotspacemacs-emacs-leader-key
to "C-c"
I also get that SPC a is bound to org-agenda
, but I couldn't find any code that sets this binding. Perhaps something bind-map
does, I don't know.
Your first hypothesis seems to be correct, I tried to change <dotspacemacs-emacs-leader-key>
to C-SPC
as I don't use the leader key in emacs mode, I always use it in VIM mode, so the layer is loaded as expected.
So we can consider this as a workaround not a solution.
Side note, I got these Warnings after restarting emacs :
Warnings:
- Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
`org-agenda-next-line' originally mapped on `C-n'
- Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
`org-agenda-toggle-time-grid' originally mapped on `G'
- Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
`org-agenda-filter-remove-all' originally mapped on `|'
- Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
`org-agenda-filter-by-tag-refine' originally mapped on `\'
- Auto-evilication could not remap these functions in map `tar-mode-map': -
`tar-chgrp-entry' originally mapped on `G'
After opening one .org
file I noticed 2 things :
C-c C-c
on list item like: - [ ] list item
doesn't toggle the item mark as done/undone instead i get org-element--set-regexps: Symbol’s function definition is void: org-link-types
in the echo area.after restarting emacs again without any changes the previous points were fixed automatically.
after restarting emacs again without any changes the previous points were fixed automatically.
Not clear what was fixed and what is still problematic.
What I'd really like to focus on is the issue below, but I'm not sure if I will get around to it: (quoting myself)
However, that doesn't explain why SPC a is bound to org-agenda. If I set
dotspacemacs-emacs-leader-key
to"C-c"
I also get that SPC a is bound toorg-agenda
, but I couldn't find any code that sets this binding. Perhaps something bind-map does, I don't know.
Well my fix was changing spacemacs-emacs-leader-key
to C-SPC
instead of C-c
,
restarted emacs and the layer was loaded as expected.
as for the second part of your comment I don't know either, this is why I consider my change as a workaround until we dig more.
I didn't face that problem again, so I'll close this as no one else complained about that
Description :octocat:
After adding
org
layer to the required layers in.spacemacs
and restarting emacs it doesn't fully loaded and shows a set or errors mentioningorg-projectile
paradox
and a set or other related packages.Reproduction guide :beetle:
org
to the required layers section in.spacemacs
SPC q q
Observed behaviour: :eyes: :broken_heart: errors in the buffer are :
Expected behaviour: :heart: :smile: Well it should load org layer with some additional packages...etc
my .spacemacs file is as follows: