Slack Emacs



Emacsは1972年にMITで生まれ、今日に至るまで名だたるハッカーに愛されてきたエディタです。 Emacsがハッカーに愛されている理由は、Emacsがそれ自体、動的なEmacs Lisp環境であり、エディタの動作をEmacsの開発者ではないあなたが、ビルドなしで動的に自由にハックできることです。. The emacs-london Slack; or via email. The meetup has been postponed since April 2020 due to COVID-19. There are no concrete plans for the next meeting but.

', :message/ts '1612166864.021100', :message/thread-ts '1612162023.018600', :message/thread-broadcast? true, :message/user {:user/name 'jr0cket', :user/slack-id 'U05254DQM', :user-profile/real-name 'John Stevenson', :user-profile/display-name 'practicalli_john', :user-profile/image-48 'https://avatars.slack-edge.com/2019-10-23/792981637554_ff55587af4a79bf0cc93_48.jpg'}, :message/inst #object[java.time.Instant 0x48fa80f0 '2021-02-01T08:07:44.021100Z']} {:message/text '<@U9TGHG3LP> thank you so much for the tips, it works like charm for point no 1. I'll try point no 2... Thanks again! :pray:', :message/ts '1612185107.021600', :message/thread-ts '1612162023.018600', :message/user {:user/name 'adrianimanuel', :user/slack-id 'U01LXHAH0GG', :user-profile/real-name 'Adrian Imanuel', :user-profile/display-name ', :user-profile/image-48 'https://secure.gravatar.com/avatar/68eb723c1d3a2c00f1ba7c617662b1a6.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-48.png'}, :reaction/_message [{:reaction/user {:db/id 17592186058178}, :reaction/type 'reaction_added', :reaction/emoji {:db/id 17592194347432, :emoji/shortcode '+1'}}], :message/inst #object[java.time.Instant 0x53a693a0 '2021-02-01T13:11:47.021600Z']} {:message/text 'If your cursor is in the repl, I believe `C-w L` will move the window to the right vertical split', :message/ts '1612194818.023300', :message/thread-ts '1612162023.018600', :message/user {:user/name 'localshred', :user/slack-id 'U5RFD1733', :user-profile/real-name 'BJ Neilsen', :user-profile/display-name 'localshred', :user-profile/image-48 'https://secure.gravatar.com/avatar/c8ef74aab2e973ba0f7da5557e0ba9a9.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0011-48.png'}, :message/inst #object[java.time.Instant 0x24be7ddd '2021-02-01T15:53:38.023300Z']}]}'>Slack Emacs
Adrian Imanuel06:02:03
Slack

Hi All,I'm sorry, newbie here... i'm using doom emacs now, and I don't know the shortcut for :1. how to make my cider repl move to right panel?2. [C c M p] >> is this the correct shortcut to send code from buffer to REPL?much appreciated for the help 😄

Max Deineko08:02:49

1. There are probably better ways to achieve this, but you can manually create a new window with one of the evil-window- and evil+/window- commands (bound to 'SPC w' prefix by default) and switch to repl buffer using 'SPC b B'2. You usually don't want to send code to repl directly (or, equivalently, paste, which 'C-c M-p' does iianm) but let cider evaluate it (former evaluates it in whatever namespace the repl currently is in, latter switches to the namespace your code defined last for span of evaluation), e.g. via 'SPC m e e' (cider-eval-last-sexp) -- see 'SPC m e' and 'SPC m p' prefixes for more commands

👏 1
', :message/ts '1612166864.021100', :message/thread-ts '1612162023.018600', :message/thread-broadcast? true, :message/user {:user/name 'jr0cket', :user/slack-id 'U05254DQM', :user-profile/real-name 'John Stevenson', :user-profile/display-name 'practicalli_john', :user-profile/image-48 'https://avatars.slack-edge.com/2019-10-23/792981637554_ff55587af4a79bf0cc93_48.jpg'}, :message/inst #object[java.time.Instant 0x48fa80f0 '2021-02-01T08:07:44.021100Z']}'>
practicalli_john08:02:44

Set the CIDER variable cider-repl-pop-to-buffer-on-connect to nil and then the REPL buffer doesn't get in the way.Evaluation in source code buffers is far more effective and is always in the context of the correct namespace.https://practicalli.github.io/clojure/repl-driven-devlopment.html#evaluating-source-code

thank you so much for the tips, it works like charm for point no 1. I'll try point no 2... Thanks again! :pray:', :message/ts '1612185107.021600', :message/thread-ts '1612162023.018600', :message/user {:user/name 'adrianimanuel', :user/slack-id 'U01LXHAH0GG', :user-profile/real-name 'Adrian Imanuel', :user-profile/display-name ', :user-profile/image-48 'https://secure.gravatar.com/avatar/68eb723c1d3a2c00f1ba7c617662b1a6.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-48.png'}, :reaction/_message [{:reaction/user {:db/id 17592186058178}, :reaction/type 'reaction_added', :reaction/emoji {:db/id 17592194347432, :emoji/shortcode '+1'}}], :message/inst #object[java.time.Instant 0x53a693a0 '2021-02-01T13:11:47.021600Z']}'>
Adrian Imanuel13:02:47

@U9TGHG3LP thank you so much for the tips, it works like charm for point no 1. I'll try point no 2... Thanks again! 🙏

localshred15:02:38

If your cursor is in the repl, I believe C-w L will move the window to the right vertical split

, in spacemacs, I would launch a `spacemacs/cider-send-xx-to-repl`option and have a look to the suggested key binding. Look for the windows menu in doom in cheatsheet: ', :message/ts '1612165760.020300', :message/user {:user/name 'caumond', :user/slack-id 'U018QDQGZ9Q', :user-profile/real-name 'caumond', :user-profile/display-name 'caumond', :user-profile/image-48 'https://avatars.slack-edge.com/2020-12-12/1555873324855_e055d2d0c002930107f3_48.png'}, :message/inst #object[java.time.Instant 0x4ad54dce '2021-02-01T07:49:20.020300Z']}'>
caumond07:02:20

Hi @adrianimanuel, in spacemacs, I would launch a spacemacs/cider-send-xx-to-reploption and have a look to the suggested key binding. Look for the windows menu in doom in cheatsheet: https://gist.github.com/hjertnes/9e14416e8962ff5f03c6b9871945b165

Slack Osx App

', :message/ts '1612166864.021100', :message/thread-ts '1612162023.018600', :message/thread-broadcast? true, :message/user {:user/name 'jr0cket', :user/slack-id 'U05254DQM', :user-profile/real-name 'John Stevenson', :user-profile/display-name 'practicalli_john', :user-profile/image-48 'https://avatars.slack-edge.com/2019-10-23/792981637554_ff55587af4a79bf0cc93_48.jpg'}, :message/top-level? true, :message/inst #object[java.time.Instant 0x56b4a964 '2021-02-01T08:07:44.021100Z'], :message/thread-parent {:message/text 'Hi All,nnI'm sorry, newbie here... i'm using doom emacs now, and I don't know the shortcut for :n1. how to make my cider repl move to right panel?n2. [C c M p] &gt;&gt; is this the correct shortcut to send code from buffer to REPL?nmuch appreciated for the help :smile:', :message/ts '1612162023.018600', :message/user {:user/name 'adrianimanuel', :user/slack-id 'U01LXHAH0GG', :user-profile/real-name 'Adrian Imanuel', :user-profile/display-name ', :user-profile/image-48 'https://secure.gravatar.com/avatar/68eb723c1d3a2c00f1ba7c617662b1a6.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-48.png'}, :message/inst #object[java.time.Instant 0x4f371b02 '2021-02-01T06:47:03.018600Z']}}'>practicalli_john08:02:44
replied to a thread:Hi All,I'm sorry, newbie here... i'm using doom emacs now, and I don't know the shortcut for :1. how to make my cider repl move to right panel?2. [C c M p] >> is this the correct shortcut to send code from buffer to REPL?much appreciated for the help :smile:
Emacs slack github

Set the CIDER variable cider-repl-pop-to-buffer-on-connect to nil and then the REPL buffer doesn't get in the way.Evaluation in source code buffers is far more effective and is always in the context of the correct namespace.https://practicalli.github.io/clojure/repl-driven-devlopment.html#evaluating-source-code

somehow, i couldn't install spacemacs. it stuck in downloading resources. someone told me to use doom for the time being. Thank you so much for your answer', :message/ts '1612185248.023100', :message/user {:user/name 'adrianimanuel', :user/slack-id 'U01LXHAH0GG', :user-profile/real-name 'Adrian Imanuel', :user-profile/display-name ', :user-profile/image-48 'https://secure.gravatar.com/avatar/68eb723c1d3a2c00f1ba7c617662b1a6.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-48.png'}, :message/inst #object[java.time.Instant 0x31e80b81 '2021-02-01T13:14:08.023100Z']}'>
Adrian Imanuel13:02:08

@caumond somehow, i couldn't install spacemacs. it stuck in downloading resources. someone told me to use doom for the time being. Thank you so much for your answer

emacs client for Slack

dependent

  • oauth2
    • do package install
  • circe (for the LinewiseUser Interface library).
  • emojify (optional)
    • required if you want to show emoji

configure

Emacs slack 使い方
  • get client-id and client-secret from https://api.slack.com/applications/new
  • get slack-token from https://api.slack.com/web

how to get client-id, client-secret and slack-token

client-id and client-secret

  1. go to https://api.slack.com/applications/new
  2. fill in the blanks like this
  3. press Create Application and it appears

slack-token

Emacs Slack 使い方

  1. go to https://api.slack.com/web
  2. scroll down
  3. it is in the Authentication section.

how to use

I recommend to chat with slackbot for tutorial using slack-im-select.

Emacs-slack Send File

  • slack-start
    • do authorize and initialize
  • slack-ws-close
    • turn off websoeket connection
  • slack-group-select
    • select group from list
  • slack-im-select
    • select direct message from list
  • slack-channel-select
    • select channel from list
  • slack-group-list-update
    • update group list
  • slack-im-list-update
    • update direct message list
  • slack-channel-list-update
    • update chennel list
  • slack-message-embed-mention
    • use to mention to user
  • slack-message-embed-channel
    • use to mention to channel

I'm evil user, so bind these functions if you need.

notification

see alert.