Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc cleanup #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Misc cleanup #10

wants to merge 5 commits into from

Conversation

mgalgs
Copy link

@mgalgs mgalgs commented Jan 2, 2020

This PR contains a few fixes and cleanups:

  • Bases the major mode on special-mode, which exists for just this sort of thing, rather than the more bare-bones fundamental-mode.
  • Rewrites the wrapper script in shell for portability.
  • Misc cleanups

`buffer-name` isn't documented anywhere in the Emacs docs and doesn't seem
to have any effect.  Remove it.
`special-mode` provides some nice default handling for viewing data (as
opposed to editing files), e.g. single-key navigation.
Ruby is great and all, but not universally installed.  Rewrite the wrapper
in plain ol' shell to make it more portable.

This also changes the behavior of `emacs-pager` slightly in that it invokes
Emacs if it's not already running by using the `emacsclient` `-a` switch
with an empty string argument.
It would be nice to page files specified at the command line a la less,
e.g.:

    $ emacs-pager my-cool-file.txt

Add support for this by detecting if any command line args are specified.
If any are specified they're assumed to be files that we will page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant