Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:05
    github-actions[bot] closed #14974
  • 17:02
    seriousbusinessuser opened #15835
  • 12:59
    github-actions[bot] closed #14406
  • 08:35

    smile13241324 on develop

    [bot] "built_in_updates" Sat No… (compare)

  • 08:35
    smile13241324 closed #15833
  • 08:34
    SpacemacsBot synchronize #15833
  • 08:34

    smile13241324 on develop

    [bot] "documentation_updates" S… (compare)

  • 08:34
    smile13241324 closed #15834
  • 06:13
    SpacemacsBot opened #15834
  • 06:13
    SpacemacsBot synchronize #15833
  • 06:12

    smile13241324 on develop

    Create layer 'apache' (#15812) … (compare)

  • 06:12
    smile13241324 closed #15812
  • 06:11
    SpacemacsBot synchronize #15833
  • 06:10

    smile13241324 on develop

    Defines "B" key bind for ebib t… (compare)

  • 06:10
    smile13241324 closed #15831
  • 06:09
    SpacemacsBot opened #15833
  • 06:09

    smile13241324 on develop

    [doc] remove user tracking with… (compare)

  • 06:09
    smile13241324 closed #15832
  • 05:47
    smile13241324 commented #15790
  • 05:27
fran-penedo
@fran-penedo
@gmalecha that's ivy. Apparently the command is C-M-j or ivy-immediate-done
Daniel Nicolai
@dalanicolai
@drewverlee I don't really work with node, but you could try to run SPC SPC spacemacs/force-init-spacemacs-env

where do you submit feature requests for layers?

@vigilancetech-com I guess you could just open an issue for it in the Spacemacs github repo

Daniel Nicolai
@dalanicolai
@gmalecha I don't know how to disable it. When you use Ivy you can just press C-k (or arrow up) to select your 'actaul input'. Maybe for helm it is the same, but otherwise you can find the answer on google for sure...
'arrow-up' seems to work
Joshua Woodie
@jwoodie
How can I get the D layer to use LSP instead of company-dcd?
Daniel Nicolai
@dalanicolai
@jwoodie It looks like it has not been implemented in the layer yet. You would have to configure LSP yourself using the info here and here
note that there exists a lsp-d.el file already... so maybe after installing the server you just have to require that and start the server... I don't remember exactly how it works
mpauper
@mpauper
Hello all, noob here. I am wondering whether it is possible to define a variable in my dotspacemacs in two different places. For instance, right now org-agenda-files is defined in (defun dotspacemacs/emacs-custom-settings (). Can I also add other files to org-agenda-files by adding a definition in user-config () ?
fran-penedo
@fran-penedo
@mpauper as far as I understand, custom settings are done after user-config, so no. I'd remove the definition in custom-settings and do it in user-config instead
mpauper
@mpauper
@fran-penedo Ok, that makes sense. But now I have another question. The initial entry in emacs-custom-settings () was automatically created by me using C-c [ when I had an org file open. If I manually move the definition to user-config (), what will happen next time I use C-c [ ?
fran-penedo
@fran-penedo
@mpauper you can try it! :D. I would expect it to set it again in custom-settings (that's why there's that notice in the function documentation about not manually modifying it)
mpauper
@mpauper
I tried it and indeed, the entry in emacs-custom-settings () was re-created, containing what I defined in user-config () + the newly added file with C-c [.
Thanks for the help, it's so daunting when you start!
nirwalle
@nirwalle_twitter
is org-display-remote-inline-images working for anyone?
westrom
@westrom:matrix.org
[m]
Did anyone here figure out how to incorporate org-roam-ui into their config?
1 reply
Jürgen
@jurgen:botz.org
[m]
So it seems in spacemacs if I have spell-checking layer enabled, then there's a conflict for M-TAB; flyspell-auto-correct-word and complete-symbol.
How do y'all deal with this?
Daniel Nicolai
@dalanicolai
@jurgen:botz.org I don't really use muchflyspell-auto-correct-word, but it is bound to C-M-i. I also never use complete-symbol so I have no suggestion for how to bind it
You can find other bindings in the flyspell-mode-map via SPC h d K
Actually, I complete symbols with TAB
Claudio Jolowicz
@cjolowicz
How do you configure Spacemacs to insert emojis using Unicode? The emoji layer does not seem to do this?
Daniel Nicolai
@dalanicolai
Ah sorry, just now read the last sentence
Claudio Jolowicz
@cjolowicz
The company-emoji-insert-unicode variable is t, but emojis are still inserted as shortcodes (although they display as emojis).
Daniel Nicolai
@dalanicolai
company is just a completion backend
Claudio Jolowicz
@cjolowicz
The only place where I get emoji auto-completion is in elisp buffers, and it inserts the shortcode. In Python buffers or text mode, there is no completion for emojis. And SPC i e inserts the shortcode as well.
Actually, I only care about magit buffers for commit messages.
Daniel Nicolai
@dalanicolai
Ah okay. But why you prefer the Unicode? Github supports shortcodes isn't it?
Anyway, I find that Spacemacs does not provide the option to insert the unicode (you can find it in the emoji-cheat-sheet-plus--create-cache function).
Claudio Jolowicz
@cjolowicz
For the terminal.
e.g. git log
Also magit buffers don‘t always display the emojis. E.g. the Body of a commit message
Daniel Nicolai
@dalanicolai
Ah okay. Well, I find that Spacemacs uses the filenames of the emoji's and inserts it between two :. To make it insert unicode, we should create an alist mapping from shortcodes to unicode. Then it would be quite easy to add the extra step to translate the shortcode to unicode automatically.
Claudio Jolowicz
@cjolowicz
I tried to use company-emoji directly without the emoji layer, but to no avail
Daniel Nicolai
@dalanicolai
But company is only a completion package
The package providing the 'emoji-insertion' feature is https://github.com/syl20bnr/emacs-emoji-cheat-sheet-plus
Claudio Jolowicz
@cjolowicz
dunn/company-emoji is a company backend
Daniel Nicolai
@dalanicolai
I thought you were talking about insertion... company provides auto-completion (suggestions)
Claudio Jolowicz
@cjolowicz
Company-emoji is able to replace shortcodes by Unicode on completion
Claudio Jolowicz
@cjolowicz
It‘s controlled by company-emoji-insert-unicode which is already t in the default emoji layer config.
Daniel Nicolai
@dalanicolai
Ah okay, thanks... let's see
So I guess you should add company-emoji to the company-backends (although I guess the layer should probably do that for you).
Daniel Nicolai
@dalanicolai
@cjolowicz So you should run M-x company-emoji-init, after that it will work.
Claudio Jolowicz
@cjolowicz
Thank you @dalanicolai I’ll try that once I’m back at a keyboard
Daniel Nicolai
@dalanicolai
Okay, but it does not yet work for the insertion. It only works when typing the shortcode (of course you could backspace twice and then type + backspace).
Daniel Nicolai
@dalanicolai
@cjolowicz I have created a PR to fix it: syl20bnr/spacemacs#15046
Claudio Jolowicz
@cjolowicz
@dalanicolai Awesome, thank you! I tried company-emoji-init in various buffers (it seems to be buffer-local?). In an elisp and Python buffer, it worked out of the box: I get a completion dropdown and the Unicode emoji is inserted when selected. When composing a commit message in magit, there was no dropdown to begin with. AFAIU this was because completion was not enabled. I ran company-mode followed by company-emoji-init, and it worked :rocket:
I'm a rather unsophisticated Emacs user. Do you have any hints on how I would configure Spacemacs to always enable company-mode and the company-emoji backend in magit commit buffers?
Daniel Nicolai
@dalanicolai
@cjolowicz Well I have just created PR's for that. I guess they will get merged soon. For now I think you can add a text-mode hook to enable company-mode in text-mode buffer (like the magit commit buffers). And you can add a second hook to run the company emoji init function.
Daniel Nicolai
@dalanicolai
Put the following in your user-config:
(add-hook 'text-mode-hook #'company-mode)
(add-hook 'text-mode-hook #'company-emoji-init)

(defun spacemacs/emoji-insert-and-possibly-complete (_)
  "Use company-emoji to complete 'to' unicode."
  (when company-emoji-insert-unicode
    (delete-char -1)
    (company-complete)))

(advice-add 'emoji-cheat-sheet-plus--insert-selection :after #'spacemacs/emoji-insert-and-possibly-complete)