Commit Graph

35 Commits

Author SHA1 Message Date
b2154b5f9b fix(irc): do not emit an error when calling =irc
When the *IRC* workspace is already populated by circe buffers, there is
no reason to emit an error, just switch to the *IRC* workspace and do
nothing.
2022-09-21 01:05:34 +02:00
ad6a3d0f33 refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
fd12794930 refactor(lib): use cl-callf instead of plist-{put,delete}!
I rediscovered cl-callf and decided to cut down on redundancies.
2022-06-17 18:20:45 +02:00
a0eb4e9b65 completion/selectrum -> completion/vertico, part 3
- Rename all functions and variables in the module to reflect the
  namechange (and the irc jump function)
2021-07-25 02:52:04 +03:00
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
5a44c1f880 selectrum: remove side effect in irc jump function
`+irc/selectrum-jump-to-channel` previously modified
`+irc--consult-circe-source` in the definition, since `plist-put`, and I
quote from the manual:
"[] may modify plist destructively, or [] may construct a new list
structure without altering the old."
2021-07-25 02:50:42 +03:00
24f2efd8ca selectrum: refactor +irc/selectrum-jump-to-channel 2021-07-25 02:50:42 +03:00
693eb3c9a4 selectrum: add +irc/selectrum-jump-to-channel 2021-07-25 02:50:42 +03:00
666e28a4d9 Merge pull request #5264 from paulapatience/set-irc-server!
Conform set-irc-server! indentation to the README
2021-07-23 16:16:08 -04:00
3396725a69 Conform set-irc-server! indentation to the README 2021-07-15 22:11:01 -04:00
4abb7a83d5 :app irc restore +irc/tracking-next-buffer
Accidentally got removed in 5ddf8b9
2021-05-21 12:41:28 +03:00
5ddf8b9b51 featuregate ivy dependent autoloads for irc, pass
previously these functions would get autoloaded even when another
completion framework was active
2021-05-21 00:51:11 +03:00
b78c96044e irc: only use the switch buffer logic during creation
This fixes a problem where calling IRC (e.g. C-c I I) will switch to
a (seemingly random but is ordered by load order) buffer.

It also adds a `user-error` when the IRC workspace is already selected.
2020-04-06 16:31:49 -07:00
dca166f79c irc: fix logic for creating a workspace
The `+workspace-switch` logic takes care of the check, so let's remove
it.
2020-01-02 15:51:05 -08:00
ac336a55ea app/irc: use SERVER for :host if no host is specified 2019-12-27 01:44:40 -05:00
01e728dad5 app/irc: remove hard dependencies on persp-mode
And fix wrong type argument perspective nil error on M-x circe
2019-12-26 22:47:27 -05:00
436d36fcd2 app/irc: fix workspace integration #2243 2019-12-24 22:16:26 -05:00
2b1c60fbd4 app/irc: refactor & fix #1616 2019-07-29 15:05:26 +02:00
77e4cc4d58 💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
5b48c21762 app/irc: fix & improve feedback from =irc #1121
Hopefully prevents =irc from nooping.
2019-02-16 17:00:31 -05:00
fb8a378d72 app/irc: fix =irc nooping without preset networks #1121
=irc would do nothing if no networks were pre-set with set-irc-server!.
2019-02-11 15:20:21 -05:00
5c1edde613 app/irc: general refactor 2019-01-23 15:54:12 -05:00
b56639e31b Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
2ad1280e4e Add set-irc-server! autodef & move :irc setting 2018-06-24 22:23:08 +02:00
7a6407eb92 Add: reasonable default keybindings for circe
The =+irc/send-message= function was added so that we can send private
messages using =SPC m m= or =M-x= with =+irc/send-message=.
2018-06-23 14:44:40 +02:00
bac286e8e2 Remove blank autoload files 2017-11-05 01:16:35 +01:00
00180310df Add: app/irc: (=irc) if irc workspace exists switch to that
don't connect to the networks again
2017-08-06 17:01:32 +02:00
679615899d app/irc: one place +irc-connections var wasn't updated
it's now handled in circe-network-options
2017-06-24 20:25:44 +02:00
96998e40d3 app/irc: general refactor 2017-06-18 23:43:08 +02:00
360eef0602 app/irc: fix +irc/ivy-jump-to-channel
not it works when buffer-names are indented below server
2017-06-16 23:52:36 +02:00
81f475da64 Fix mapcar used for effect 2017-06-12 19:07:40 +02:00
01dc170e5b app/irc: clean up timer & notifications on quit 2017-06-12 14:37:14 +02:00
b3dafe96d3 app/irc: general rewrite (#103)
+ Refactor initialization process.
+ Refactor for consistency.
+ Add +irc-defer-notifications (for ZNC users).
+ Rewrote =irc (opens separate workspace + auto-connects to registered
  networks).
+ Add +irc/connect (connect to specific network).
+ Add +irc/quit (kill whole circe session).
+ Add +irc/ivy-jump-to-channel command.
+ Rewrite README.
+ Silence QUIT/PART default messages; they're cute, but no thanks.
+ Truncate nicks non-destructively.
+ Jump to prompt when entering insert mode (with evil).
+ Activate solaire-mde in channel buffers to visually distinguish them
  from server buffers.
2017-06-12 14:22:35 +02:00
d2b514e1ba Consistency refactor
For consistency with other app modules:

+ Refactor out s.el dependency
+ Reorder variables (public then private)
+ Use add-hook! instead of add-hook+lambda
+ Optimization: replace mapcar+closure with cl-loop (reduces allocations)
+ Replace evil-set-initial-state with (set! :evil-state ...), which is
  ignored if :feature evil is disabled.
2017-06-11 16:15:36 +02:00
9645945465 app/irc: initial commit 2017-06-11 15:55:22 +02:00