Commit graph

134 commits

Author SHA1 Message Date
Henrik Lissner
a5877139cd
feature/workspaces: persp-mode integration for eshell, compile & magit-status 2018-04-21 21:04:34 -04:00
Henrik Lissner
39836fc15d
feature/workspace: disable autosave on manual autosave
+workspace/save-session without a name = autosaves the current session.
Doing so now disables autosaving on kill-emacs, otherwise your autosave
would be overwritten when closing Emacs.
2018-04-21 21:03:23 -04:00
Henrik Lissner
693942e438
Merge pull request #511 from amosbird/develop
fix workspace switch-left cycle.
2018-04-18 00:19:43 -04:00
Henrik Lissner
484cba1b1b
feature/workspaces: unselect side-windows when switching workspaces #499 2018-04-08 18:14:07 -04:00
Amos Bird
b2b603240f fix workspace switch-left cycle. 2018-04-05 21:24:13 +08:00
Henrik Lissner
54c6301f45
feature/workspaces: reduce redundancy in +workspace/kill-session 2018-04-02 05:51:01 -04:00
Henrik Lissner
aad653d913
feature/workspaces: clear last workspace instead of erroring out 2018-04-02 05:50:39 -04:00
Henrik Lissner
3f4c2c81d9
feature/workspaces: if universal arg, don't prompt for file on project switch 2018-03-23 16:03:29 -04:00
Henrik Lissner
a2ab9e739c
feature/workspaces: minor refactor 2018-03-22 06:30:49 -04:00
Henrik Lissner
61206a553d
feature/workspaces: add sharp-quote 2018-03-22 06:28:00 -04:00
Henrik Lissner
d5683ba681
feature/workspaces: fix recursive load errors on 25.x #470
+workspaces|protect-buffers-in-other-persps was unnecessary, in any
case.
2018-03-22 06:26:42 -04:00
Henrik Lissner
d84222b6d0
feature/workspaces: use new switch-buffer hooks 2018-03-14 18:31:48 -04:00
Henrik Lissner
a17fc86761
feature/workspaces: fix buffer getting killed across workspaces 2018-03-12 13:33:50 -04:00
Henrik Lissner
e659ab0609
feature/workspaces: refactor switch-project integration 2018-02-20 17:56:38 -05:00
Henrik Lissner
7707aec28a
Remove doom group
Not really useful, and Doom doesn't encourage using the Emacs Customize
interface.
2018-02-18 03:04:58 -05:00
Henrik Lissner
f2a4028f30
feature/workspaces: refactor +workspace-buffer-list 2018-02-10 02:16:50 -05:00
Henrik Lissner
f35a49dc7e
feature/workspaces: redefine +workspace/kill-session-and-quit 2018-02-07 19:27:41 -05:00
Henrik Lissner
68a4c85088
feature/workspaces: have switch-project recycle empty workspaces
If you're in an empty workspace, reuse it, rather than spawning a new
one. This lets you create a new workspace *then* switch project.
2018-02-06 17:49:55 -05:00
Henrik Lissner
1db29a951e
feature/workspaces: fix counsel-projectile-switch-project actions 2018-02-06 13:50:26 -05:00
Henrik Lissner
b6ee578cda
feature/workspace: fix new frames with unreal buffers + no buffer predicate 2018-02-04 02:21:35 -05:00
Henrik Lissner
3830a8aba1
feature/workspaces: fix infinite recursion in buffer-predicate #399
By refactoring so that the middle-man buffer predicate wasn't necessary.
2018-02-03 18:06:47 -05:00
Henrik Lissner
cbd6bf190a
feature/workspaces: minor refactor 2018-02-02 20:47:33 -05:00
Henrik Lissner
d9a80a9520
feature/workspaces: fix buffer-bleedover from other workspaces
The frame buffer-predicate wasn't discriminating against buffers that
were in other perspectives, allowing you to `next-buffer` into them.
UNACCEPTABLE.
2018-02-02 20:47:33 -05:00
Henrik Lissner
c319b606cd
feature/workspaces: don't pollute *Messages* with tabbar output 2018-02-02 20:47:32 -05:00
Henrik Lissner
2989296521
Use frame's buffer-predicate instead of doom/{next,previous}-buffer
doom/{next,previous}-buffer was implemented so that these commands could
skip over unreal buffers, and land us on either a real one or the
dashboard. Using the frame's buffer-predicate parameter accomplishes
exactly this, natively.
2018-02-01 19:58:43 -05:00
Henrik Lissner
c97c460ce2
feature/workspaces: fix switch-project #388
+ Fix recursive find-file-in-project prompt with counsel-projectile.
+ Fix duplicate-workspace error (just switches to that workspace, rather
  than trying to create one).
+ Fix dashboard replacing current buffer when switching to
  a pre-existing project workspace.
2018-01-31 04:54:48 -05:00
Henrik Lissner
dc2b905933
feature/workspace: don't pop up warnings/display tabs on every new frame 2018-01-31 02:16:02 -05:00
Henrik Lissner
81bba9c0bc
feature/workspace: fix frames incorrectly initialized via emacsclient
A new workspace is now correctly created for files opened via
emacsclient. This fixes #119. Again.
2018-01-31 01:13:59 -05:00
Henrik Lissner
834e92c465
feature/workspaces: fix hash-table-p error on startup in daemon Emacs
Because persp-mode initializes differently (and later) in daemon/noninteractive
Emacs, +workspaces|init would fail while trying to use persp-mode features in a
broken state.
2018-01-30 16:17:53 -05:00
Henrik Lissner
22f4404210
feature/workspace: improve daemon/frame compatibility
This update fixes issues with frame-local perspectives, and ensures that
a workspace is always selected in a daemon session's frames.
2018-01-28 20:32:10 -05:00
Henrik Lissner
38c0a85155
feature/workspaces: display tab line in minibuffer
This prevents the tabline from being mirrored across all frames.
2018-01-28 20:30:44 -05:00
Henrik Lissner
83b04b4f14
feature/workspace: associate emacsclient frames with workspace too 2018-01-28 18:26:32 -05:00
Henrik Lissner
3578d433c2
Integrate counsel-projectile-switch-project & restore file prompt when switching projects 2018-01-28 03:34:18 -05:00
Henrik Lissner
381a4416ed
feature/workspaces: major refactor & various fixes
+ Rewrite projectile integration.
+ Fix per-frame workspaces not cleaning up after itself when an
  frame-associated workspace (or its frame) is destroyed.
+ Alias +workspace-p to perspective-p instead of persp-p (which isn't as
  accurate, because it counts nil as a valid perspective).
+ Extract orphaned-buffer list functionality in +workspace-buffer-list
  into seperate function: +workspace-orphaned-buffer-list.
+ Allow toggle-debug-on-error to catch workspace errors.
+ Remove +workspace/kill-session-and-quit (never used)
+ Ensure persp-mode is loaded as late as possible.
2018-01-20 15:38:59 -05:00
Henrik Lissner
45c2221316
General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
Henrik Lissner
10167b85b5
feature/workspaces: remove +workspace-change-hook
persp-mode provides the following hooks already (among many others):

+ persp-{before,after}-switch-functions
+ persp-renamed-functions
+ persp-created-functions
+ persp-before-kill-functions

This makes +workspace-change-hook redundant.
2018-01-14 16:21:22 -05:00
Henrik Lissner
25619908a2
Narrow down the purpose of init & post-init hooks
Essential hooks should be added to doom-init-hook. Non-essential and
extra hooks should be added to doom-psot-init-hook.
2018-01-07 00:15:58 -05:00
Henrik Lissner
0c3484414c
Fix dashboard replacing warnings buffer in popup at startup
It makes the dashboard screen a mess!
2018-01-07 00:15:57 -05:00
Henrik Lissner
48b0a468d1
THOU SHALT NOT WORSHIP FALSE IDOLS, said the byte compiler
And I obeyed.
2018-01-06 04:24:38 -05:00
Henrik Lissner
b28f6ed477
General minor refactor & comment revision 2018-01-06 03:03:02 -05:00
Henrik Lissner
b3b31e4bd4
Display *Warnings* buffer in main workspace after startup #319
The creation of the main workspace would swallow the Warnings buffer, so
we forcibly display it (if it exists) on startup.
2018-01-04 16:58:21 -05:00
Henrik Lissner
88f8c27a7d
Fix doom/cleanup-session & +workspaces|cleanup-unassociated-buffers
Resolve void n variable errors and silent message.
2018-01-04 16:16:44 -05:00
Henrik Lissner
e9b5ab2385
Fix +workspace/close-window-or-workspace treating everything as a popup 2018-01-04 16:16:44 -05:00
Henrik Lissner
e74a95de32
feature/workspaces: fix tests 2018-01-04 16:16:44 -05:00
Henrik Lissner
790eed0abd
feature/workspaces: run +workspace-change-hook when updating ws list 2018-01-04 16:14:59 -05:00
Henrik Lissner
f3562eb038
feature/workspaces: refactor persp-mode init 2018-01-04 03:01:35 -05:00
Henrik Lissner
9f884bf998
Move delayed-warnings deferral to core.el
Possibly addresses #319
2018-01-03 12:54:30 -05:00
Henrik Lissner
8e7b822062
Remove core-popup coupling
New popup management system coming soon!
2018-01-03 03:44:34 -05:00
Henrik Lissner
e87b788078
Update & reformat module readmes for v2.0.9
+ completion/ivy
+ completion/company
+ feature/evil
+ feature/eval
+ feature/snippets
+ feature/workspaces
+ tools/neotree
2018-01-01 13:21:53 -05:00
Henrik Lissner
8ad2666f8f
Refactor and fix unit tests, plus isolate them better 2017-12-31 14:58:45 -05:00