Commit graph

58 commits

Author SHA1 Message Date
Henrik Lissner
2d97b877ed
Remove duplicate image-dired-dir setting 2020-01-06 04:49:57 -05:00
Henrik Lissner
54f42fef23
Add popup rules for image-dired 2019-12-29 15:44:10 -05:00
Henrik Lissner
995031f66f
emacs/dired: re-comment dired settings
Closes #2212
2019-12-19 18:42:37 -05:00
Henrik Lissner
0cb62657b7
emacs/dired: replace advice w/ remap for fd-dired 2019-12-13 14:23:44 -05:00
Henrik Lissner
33b78499fc
emacs/dired: fix {fd,find}-dired opening results in a popup #2159 2019-12-08 00:21:29 -05:00
Henrik Lissner
1655524836
emacs/dired: don't enable dired-hide-details-mode by default 2019-12-03 03:54:29 -05:00
Henrik Lissner
0bf1ea65dc
emacs/dired: disable dired-git-info by default
It is unacceptably slow in version controlled directories with many
files.
2019-11-25 02:02:57 -05:00
Henrik Lissner
b8c0126f8c
emacs/dired: don't enable dired-git-info in ranger
It won't correctly disable on `C-c C-e`, but it does work find if
enabled manually.

Also: refactors +dired-enable-git-info-h and map! call

Relevant to #2106
2019-11-24 16:50:47 -05:00
Henrik Lissner
5608ba7236
emacs/dired: disable dired-git-info-mode in wdired-mode
And refactor ranger/dired keybind for dired-git-info-mode (#2106).
2019-11-23 01:26:17 -05:00
Ting Zhou
a5ff637e6f emacs/dired: ranger catch up dired-git-info 2019-11-22 22:14:23 -08:00
Max Nickel
d295c5d723 disable dired-git-info when ranger is enabled and fix keybinding 2019-11-02 14:31:53 -04:00
Max Nickel
1b962937ce add keybinding to toggle dired-omit-mode 2019-11-02 14:31:20 -04:00
Max Nickel
0d7d107bbf remove unnecessary dotfile functions and hooks 2019-11-02 14:29:51 -04:00
Max Nickel
49fce0b1c3 [dired] follow function naming conventions 2019-10-27 17:47:20 -04:00
Max Nickel
9d55e75bd8 [dired] add support for hiding dotfiles and hide details by default 2019-10-27 17:32:52 -04:00
Max Nickel
5660d7ba6b [dired] add dired-git-info support 2019-10-27 17:31:53 -04:00
Henrik Lissner
b0106e2ac7
emacs/dired: replace 18f20a531 w/ 'quit-all' command #1937
There are a few workflows where having multiple buffers (e.g.
side-by-side) is preferrable, however, `dired-find-alternate-file` kills
the old buffer indiscriminately.
2019-10-26 13:39:52 -04:00
Henrik Lissner
18f20a5313
emacs/dired: stop dired buffer pollution #1937 2019-10-23 01:48:48 -04:00
Rudi Grinberg
e589c17cf6 Turn on dired-dwim-target
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-23 12:51:49 +09:00
Henrik Lissner
bf46a197a0
emacs/dired: appease byte-compiler sama 2019-10-22 12:36:43 -04:00
Henrik Lissner
0ccf31635d
emacs/dired: fix icons interfering w/ wdired #1929 2019-10-22 01:58:17 -04:00
Henrik Lissner
e0469e14c0
Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
Henrik Lissner
35b9abd230
emacs/dired: integrate open/xdg-open/start w/ dired 2019-10-19 22:22:50 -04:00
Henrik Lissner
5783fe5e7e
emacs/dired: expand dired-omit-files 2019-10-19 22:22:50 -04:00
Henrik Lissner
2478271583
emacs/dired: add fd-dired for faster find-dired
...if you have fd installed.
2019-10-19 22:22:50 -04:00
Henrik Lissner
a9919a5360
Fix #1703: blank dired over TRAMP
When the remote system does not have GNU ls installed.
2019-10-07 22:12:16 -04:00
Henrik Lissner
81ee250c09
Minor refactor & revision across the board 2019-09-03 00:59:46 -04:00
Henrik Lissner
07dfe2703c
Fix void-function diff-hl-magit-post-refresh error 2019-09-02 12:42:02 -04:00
Henrik Lissner
3c4252ffe7
Merge branch 'develop' into dired 2019-09-02 00:51:52 -04:00
Ting Zhou
db5049e13e emacs/dired: minor fix 2019-08-27 00:14:51 -07:00
Ting Zhou
c5c500e033 emacs/dired: ranger already come with omit-mode 2019-08-26 00:01:37 -07:00
Ting Zhou
ebff3ff6e0 emacs/dired: use diff-hl instead of dired-k 2019-08-25 23:20:17 -07:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02: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
c795a988e6
Conform many modules to new conventions 2019-07-23 12:30:47 +02:00
Henrik Lissner
952e9dd220
emacs/dired: auto-revert & reduce prompting 2019-07-22 02:37:45 +02:00
Henrik Lissner
a6490020c7
emacs/dired: remove duplicate evil keybinds
Redundant with evil-collection-dired
2019-06-10 09:38:55 +02:00
Henrik Lissner
ed69d580fb
emacs/dired: fix ranger oddities
Added two hacks to fix two obnoxious issues Ranger has, having to do
with it failing to clean up after itself. In particular:

1. A left over mouse-1 bind that traps focus in a particular
   window (easy to get around with keyboard-based window switch
   commands, but this renders the mouse useless),

2. And the lingering ranger header bar (i.e. it doesn't clean up
   header-line-format).

This commit also ensures Deer overrides dired if +ranger is enabled.
2019-05-20 21:09:12 -04:00
Henrik Lissner
e76765e0b8
emacs/dired: add dired-rsync
And bind it to C-c C-r
2019-05-20 21:09:12 -04:00
Henrik Lissner
c4af1a807c
emacs/dired: enable diredfl & dired-k in ranger/deer 2019-05-20 21:09:12 -04:00
Henrik Lissner
57697efb62
emacs/dired: add diredfl & refactor
- Adds C-c C-e for invoking wdired
- Adds diredfl for more colors in dired (and disables dired-k's coloring
  based on mtime, which was confusing)
2019-05-20 21:09:12 -04:00
Henrik Lissner
75777756e1
Remove redundant dired sort hook #1414
This still means dired will be unsorted for BSD ls users, but that's
acceptable (for now).
2019-05-14 18:45:38 -04:00
Henrik Lissner
6b69eaa397
Minor refactors across the board 2019-04-26 17:42:44 -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
2dc52bc9be
💥 Replace exec-path-from-shell w/ 'bin/doom env'
IMPORTANT: This is a breaking update for Mac users, as your shell
environment will no longer be inherited correctly (with the removal of
exec-path-from-shell). The quick fix is: 'bin/doom env refresh'. Also,
the set-env! autodef now does nothing (and is deprecated), be sure to
remove calls to it in your config.

Smaller changes:
+ This update also adds --no-* switches to doom quickstart
+ Includes general improvements to the documentation of several bin/doom
  commands.
+ Moves doom/reload* commands to core/autoload/config.el
+ doom/reload-project has been removed (it didn't actually do anything)

The breaking change:
This update adds an "envvar file" to Doom Emacs. This file is generated
by `doom env refresh`, populated with variables scraped from your shell
environment (from both non-interactive and interactive sessions). This
file is then (inexpensively) loaded at startup, if it exists.

+ The file is manually generated with `doom env refresh`.
+ It can be regenerated automatically whenever `doom refresh` is run by
  running `doom env enable` (`doom env clear` will reverse this and
  delete the env file).
+ `doom quickstart` will ask if you want to auto-generate this envvar
  file. You won't need it if you're confident Emacs will always be
  started from the correct environment, however.
+ Your env file can be reloaded from a running Emacs session with `M-x
  doom/reload-env`. Note: this won't work if the Emacs session you're
  running it in doesn't have a correct SHELL set. i.e. don't use this to
  create your first env file!

The idea isn't mine -- it's borrowed from Spacemacs -- and was
introduced to me in #1053 by @yurimx. I was impressed with it. Prior to
this, I was unhappy with exec-path-from-shell (no hate to the dev, I
understand its necessity), and 'doom patch-macos' wasn't ideal for mac
users (needed to be reapplied every time you update Emacs). What's more,
many users (even Linux users) had to install exec-path-from-shell
anyway.

This solution suffers from none of their shortcomings. More reliable
than patch-macos, more performant and complete than
exec-path-from-shell, and easily handled by bin/doom.
2019-03-28 01:56:09 -04:00
Henrik Lissner
f02e7faefb
emacs/dired: ranger-show-literal = nil 2019-03-09 19:56:48 -05:00
Henrik Lissner
c07f43bba3
Remove --group-directories-first arg for bsd ls 2019-03-02 13:49:39 -05:00
Henrik Lissner
19987df00a
Add IS-BSD constant
Fixes dired gls support on BSD OSes (and not just MacOS).
2019-01-05 16:06:26 -05:00
Alex Ragone
69c277ffce fix: disable verbose message for dired-omit
To avoid endless spam in *Messages*, disable "Omitted 2 lines" every
time a new dired buffer is opened.
2018-12-27 16:37:44 +13:00
Henrik Lissner
d6cb0ec5f5
General cleanup & minor refactoring 2018-12-22 04:25:15 -05:00