Commit graph

54 commits

Author SHA1 Message Date
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
Henrik Lissner
5c85899ee5
Bump :ui treemacs
Alexander-Miller/treemacs@81b69d9 -> Alexander-Miller/treemacs@d2ed942
2020-04-07 21:37:32 -04:00
James Ravn
b5a2cde062
Simplify :after, and add whitespace 2020-04-03 09:30:10 +01:00
James Ravn
e05e452528
Enable treemacs workspace/persp support
With https://github.com/Alexander-Miller/treemacs/issues/592 merged,
treemacs now fully supports perspective mode. That is, each treemacs
buffer is scoped to a perspective and initializes itself using projectile.

This change re-enables treemacs-persp, enables the `Perspectives` scope,
and adjusts the doom treemacs init behavior to support the new
treemacs-persp behavior.

I haven't been able to reproduce the prior errors with melpa so I think
this is safe to re-enable now. In my testing it seems to work
flawlessly, both with and without persp-mode enabled.

Only one issue is that users might need to remove their treemacs persist
file (`~/.emacs.d/.local/cache/treemacs-persist`) after this change if
using persp-mode. I'm not sure if it is necessary since I blew away my
own before testing.
2020-04-02 21:05:49 +01:00
Henrik Lissner
7c5903c339
Bump :ui modules
hlissner/emacs-doom-themes@0760079 -> hlissner/emacs-doom-themes@bbb3725
tarsius/hl-todo@5d2ea49 -> tarsius/hl-todo@3bba459
abo-abo/hydra@e3beffd -> abo-abo/hydra@16fa8d1
seagle0128/doom-modeline@0df5585 -> seagle0128/doom-modeline@0642f71
syohex/emacs-anzu@592f8ee -> syohex/emacs-anzu@2e69955
jaypei/emacs-neotree@c2420a4 -> jaypei/emacs-neotree@98fe213
ema2159/centaur-tabs@af50f87 -> ema2159/centaur-tabs@e6bf9f5
Alexander-Miller/treemacs@4eb8eb8 -> Alexander-Miller/treemacs@81b69d9
syohex/emacs-git-gutter-fringe@16226ca -> syohex/emacs-git-gutter-fringe@da19a47
Bad-ptr/persp-mode.el@e330e62 -> Bad-ptr/persp-mode.el@391a7dc
jabranham/mixed-pitch@6090716 -> jabranham/mixed-pitch@734fbdf
2020-03-27 16:18:52 -04:00
Henrik Lissner
13aa3e8407
Fix #2613: remove treemacs-persp
A common bug report is that straight cannot see treemacs-persp in MELPA.
Perhaps the MELPA repo isn't being updated properly -- I have no idea,
but since this package isn't doing anything at the moment, I will simply
remove the package until I have time to look into it further.
2020-02-27 00:49:47 -05:00
Henrik Lissner
4c0751ca75
ui/treemacs: refactor & activate treemacs-git-mode 2020-02-25 22:35:58 -05:00
Henrik Lissner
899987fb91
Bump to Alexander-Miller/treemacs@4eb8eb8
From Alexander-Miller/treemacs@4d4a955
2020-02-24 20:07:35 -05:00
Henrik Lissner
1446f1a37c
Bump to Alexander-Miller/treemacs@4d4a955
From Alexander-Miller/treemacs@05d264a

Due to hlissner/emacs-doom-themes#395
2020-02-11 03:21:30 -05:00
Henrik Lissner
ae1e3f005e
Bump to Alexander-Miller/treemacs@05d264ae8c
Also affects treemacs-{evil,projectile,magit,persp}, since they are in
the same repo.
2020-02-10 02:38:12 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Henrik Lissner
5a07e8f655
Add treemacs-persp package #1348 2020-01-13 16:03:22 -05:00
Henrik Lissner
4fe24df90f
Fix #1970: don't count treemacs as a "popup"
And remove its popup rule.

It isn't being caught by the popup system in the first place, so this is
all a charade.
2020-01-06 03:50:48 -05:00
Henrik Lissner
acdd16f2b1
ui/treemacs: treemacs-sorting = 'alphabetic-case-insensitive-asc
Since sorting was reversed upstream:

Alexander-Miller/treemacs@af757e6
2019-12-13 16:22:14 -05:00
Henrik Lissner
e0469e14c0
Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
Henrik Lissner
44eb11c028
ui/treemacs: make o {v,s} consistent w/ C-w {v,s} #1875 2019-10-10 16:58:23 -04:00
Henrik Lissner
06a8384f77
ui/treemacs: remove unnecessary hack
Due to changes upstream.
2019-09-20 23:54:53 -04:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
9d1e2c5bd9
Fix delq! use causing wrong-type-arg error w/ treemacs 2019-07-22 16:41:43 +02:00
Henrik Lissner
1c4215c187
Fix 'command not found' errors for hidden commands 2019-07-22 04:46:14 +02:00
Henrik Lissner
dbcd2f7624
Move treemacs-last-error-persist-file out of ~/.emacs.d
Git off my lawn.
2019-07-11 17:22:27 +02:00
Jeff Jewiss
4e24d09f71
use treemacs-magit package
Install and use treemacs-magit if both treemacs and magit are enabled in init.el.
2019-05-10 11:38:34 -04:00
Henrik Lissner
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
Henrik Lissner
a37e1922da
ui/treemacs: fix tab/ret keybinds in evil treemacs
Fixes #1257
2019-03-15 01:49:11 -04:00
Henrik Lissner
115d1990d4
ui/treemacs: remove hl-line->region face remapping
This causes more issues that solves. Perhaps something can be done
upstream to make this line highlight brighter.

Possibly addresses #957
2019-03-04 04:57:07 -05:00
Henrik Lissner
0534d85c54
ui/treemacs: refactor
Treemacs enables treemacs-filewatch-mode and treemacs-git-mode itself.
Also removes settings that are the same as the defaults.
2019-03-04 04:57:07 -05:00
Henrik Lissner
d6d67ac568
Force ace-window not to ignore treemacs #1177 2019-02-18 20:17:19 -05:00
Henrik Lissner
3fd1548da5
Set treemacs--last-error-persist-file later #1151
Because treemacs--last-error-persist-file is defined with defconst, its
default value will overwrite our custom one once the
treemacs-persistence package is loaded.
2019-02-03 18:54:13 -05:00
Ting Zhou
e00ea2c306 ui/treemacs: assgin treemacs--last-error-persist-file 2019-01-23 14:18:31 -08:00
Henrik Lissner
fbb0297eb1
ui/treemacs: remove leader key fix
These aren't necessary now that the leader keymap has high precedence.
2019-01-08 20:40:26 -05:00
Henrik Lissner
e7fc1d3290
Fix wrong-type-arg: stringp, nocache errors
Fix old usage of doom-project-name and doom-project-root.
2018-09-28 23:49:18 -04:00
Henrik Lissner
53fe7a1f04 Refactor Project API to reflect changes upstream
projectile-project-root no longer returns `default-directory` if not in
a project (it returns nil). As such, doom-project-* functions (and their
uses) have been refactored.

+ doom-project-p & doom-project-root are aliases for
  projectile-project-p & projectile-project-root.
+ doom-project-{p,root,name,expand} now has a DIR argument (for
  consistency, since projectile-project-name and
  projectile-project-expand do not).
+ The nocache parameter is no longer necessary, as projectile's caching
  behavior is now more sane.
+ Removed some projectile advice/hacks that are no longer necessary.
+ Updated unit tests
2018-09-28 21:13:27 -04:00
Henrik Lissner
d5f8ecdfce
ui/treemacs: fix leader key in treemacs
This is an ugly hack and I should be ashamed.

Shame.

Shame.

Shame.

But alas, it shall do until general.el is in.

Fixes #860
2018-09-27 18:16:21 -04:00
Henrik Lissner
60c03a78d9
Fix void-function treemacs-current-visibility error
Tried to use a function before it was defined.
2018-08-30 13:11:18 +02:00
Henrik Lissner
cab0ee33d1
ui/treemacs: fix SPC o P (treemacs-find-file)
Would create a blank treemacs window when invoked before a treemacs
window was first initialized.
2018-08-29 02:16:06 +02:00
Henrik Lissner
e866fc46aa
ui/treemacs: make hl-line stand out more #846
By remapping it to the region face. Perhaps another face would be a
better fit?
2018-08-28 13:30:51 +02:00
Henrik Lissner
d0295a26d4
ui/treemacs: show only one project #846
If you use +treemacs/toggle.
2018-08-28 13:28:01 +02:00
Henrik Lissner
519330fcb1
Fix wrong-type-argument: treemacs-workspace error
Caused by changes upstream.
2018-08-10 18:52:20 +02:00
Henrik Lissner
4ab1bbbdba
Fix 'simple mode for +treemacs-use-git-mode
Due to pattern mismatch, 'simple mode was never activated.
2018-08-06 22:41:43 +02:00
Henrik Lissner
d01926a7c3
Fix void-function treemacs--is-visible? error 2018-08-06 11:18:26 +02:00
Henrik Lissner
c4ec1413dc
ui/treemacs: update function name
Due to change upstream
2018-08-04 12:18:54 +02:00
Henrik Lissner
4db89a2fb4
Remove treemacs popup hack
Now that it is supported upstream.

Relevant to #766
2018-08-03 19:15:46 +02:00
Henrik Lissner
8756837036
ui/treemacs: disable treemacs-follow-mode
Can be disruptive if you've got many windows with buffers across
different projects. Also, SPC o P is available to "jump to current file"
in the treemacs window.
2018-07-19 03:38:52 +02:00
Henrik Lissner
e4778f9923
Disable treemacs-follow-mode by default
This has proven intrusive, especially when you have files from different
projects open and you switch between them rapidly. Enabling
treemacs-follow-mode is left up to the user. Otherwise, the SPC o P
keybind and treemacs-find-file command can this manually and on-demand.

Also remove hide-mode-line-mode from treemacs because it's redundant
with the doom-themes treemacs icon theme.
2018-07-10 23:08:05 +02:00
Henrik Lissner
35b76ee49b
Enable minimalistic icon theme for treemacs
Still experimental.
2018-07-10 23:05:01 +02:00
Henrik Lissner
4213899b01
Refactor out -pcase in +treemacs/toggle 2018-07-01 01:16:37 +02:00
Henrik Lissner
2023aac314
Add +treemacs/toggle command 2018-06-15 03:42:01 +02:00
Henrik Lissner
b2b6ff67f2
Prevent treemacs from creating ~/.emacs.d/.cache
Alexander-Miller/treemacs#212 introduced treemacs-persist-file, which we
now use instead of tools/treemacs' old treemacs-persistence hack (which
didn't work).

Relevant to #669
2018-06-14 14:03:10 +02:00
Henrik Lissner
c8783f3291
ESC -> close treemacs for evil users 2018-06-11 00:11:20 +02:00