All Projects → anler → Centered Window Mode

anler / Centered Window Mode

Keep your text centered when there's only one window.

Labels

Projects that are alternatives of or similar to Centered Window Mode

Organice
An implementation of Org mode without the dependency of Emacs - built for mobile and desktop browsers
Stars: ✭ 1,327 (+1140.19%)
Mutual labels:  emacs
Nimbus Theme
The best dark theme for Emacs
Stars: ✭ 102 (-4.67%)
Mutual labels:  emacs
Circadian.el
Theme-switching for Emacs based on daytime
Stars: ✭ 105 (-1.87%)
Mutual labels:  emacs
Frames Only Mode
Make emacs play nicely with tiling window managers by setting it up to use frames rather than windows
Stars: ✭ 96 (-10.28%)
Mutual labels:  emacs
.personal Emacs.d
😈 My opinionated Emacs configuration
Stars: ✭ 101 (-5.61%)
Mutual labels:  emacs
Restart Emacs
A simple emacs package to restart emacs from within emacs
Stars: ✭ 104 (-2.8%)
Mutual labels:  emacs
Eless
A Better 'less' - A bash script that loads emacs with minimal view-mode config - Created with Org mode
Stars: ✭ 94 (-12.15%)
Mutual labels:  emacs
Jeison
An Emacs library for declarative JSON parsing
Stars: ✭ 106 (-0.93%)
Mutual labels:  emacs
Srcery Emacs
Dark colorscheme for Emacs/Spacemacs. GUI and terminal support
Stars: ✭ 102 (-4.67%)
Mutual labels:  emacs
Md Roam
Use Org-roam with markdown files by adding Md-roam as a plug-in. Mix and match org and markdown files.
Stars: ✭ 104 (-2.8%)
Mutual labels:  emacs
Dotfiles
💻 Use command line interface manager for macOS configuration.
Stars: ✭ 97 (-9.35%)
Mutual labels:  emacs
Parrot
A package to rotate text and party with parrots at the same time
Stars: ✭ 99 (-7.48%)
Mutual labels:  emacs
Logview
Emacs mode for viewing log files.
Stars: ✭ 104 (-2.8%)
Mutual labels:  emacs
Ox Rst
reStructuredText Back-End for Org-Mode Export Engine
Stars: ✭ 94 (-12.15%)
Mutual labels:  emacs
Add Node Modules Path
Adds the node_modules/.bin directory to the buffer exec_path. E.g. support project local eslint installations.
Stars: ✭ 105 (-1.87%)
Mutual labels:  emacs
Emacs Config
Personal Emacs configuration files
Stars: ✭ 94 (-12.15%)
Mutual labels:  emacs
Binder
Emacs global minor mode facilitating multi-file writing projects
Stars: ✭ 104 (-2.8%)
Mutual labels:  emacs
Slime
The Superior Lisp Interaction Mode for Emacs
Stars: ✭ 1,541 (+1340.19%)
Mutual labels:  emacs
Weblorg
Static Site Generator for Emacs
Stars: ✭ 103 (-3.74%)
Mutual labels:  emacs
Phi Search
Another incremental search command, compatible with “multiple-cursors”
Stars: ✭ 104 (-2.8%)
Mutual labels:  emacs

NOTE: Due to a lack of time to solve the issues of this project and the responsabilities derived from my recent paternity, I'm looking for someone to transfer the ownership of the project and who's willing to keep working in it.

  • Centered Window Mode

    Global minor mode that centers the text of the window. If another window is visible the text goes back to normal if its width is less than =cwm-centered-window-width=.

    You may want to activate =visual-line-mode= if your lines go out of reach.

  • Screenshots

[[https://raw.githubusercontent.com/ikame/centered-window-mode/master/img/s-1.png]] [[https://raw.githubusercontent.com/ikame/centered-window-mode/master/img/s-2.png]] [[https://raw.githubusercontent.com/ikame/centered-window-mode/master/img/s-3.png]]

  • Installation

** Manual installation

First, download =centered-window-mode.el= in your emacs load path.

Then, to make it available, add this to your configuration file:

#+begin_src emacs-lisp (require 'centered-window-mode) #+end_src

** Installation via el-get

If you use [[https://github.com/dimitri/el-get][el-get]], the emacs package manager, simply add =centered-window-mode= to your packages list.

** Installation via use-package

If you use [[https://github.com/jwiegley/use-package][use-package]], simply add the following to your init file.

#+BEGIN_SRC elisp (use-package centered-window :ensure t) #+END_SRC

  • Activation

** On-the-fly

Simply type =M-x centered-window-mode= in any buffer.

** Permanent

To make this permanent, add this to your emacs configuration file:

#+begin_src emacs-lisp (require 'centered-window-mode) (centered-window-mode t) #+end_src

  • Vertical padding

Adding vertical padding to an Emacs window is kind of hard, I have tried a lot of different solutions but most of them add a lot of complexity and source of bugs to the mode. Currently there are the options =cwm-use-vertical-padding= (default =nil=, set to =t= if you want this feature) and =cwm-frame-internal-border= (default =70=) to add some padding to the frame, it's far from ideal but I have found it at most acceptable for most of the use cases where I need this feature.

  • Customization Once installed you can easily customize the mode use Emacs' customization mechanism: =M-x customize-groupcentered-window-mode=
  • License

Copyleft (ɔ) Anler Hernández Peral

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].