• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    Emacs Lisp
  • License
    GNU General Publi...
  • Created over 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Small global-minor-mode to Emacs to handle several layouts

https://melpa.org/packages/0blayout-badge.svg https://stable.melpa.org/packages/0blayout-badge.svg

0blayout-mode – Small Layout Management mode

This mode provides the ability to have several layouts saved and then you can easily switch between your saved layouts. When you first load the mode, you will get a “default” layout named “default”.

Default Prefix

Default keyboard prefix is C-c C-l, and you can modify that by putting this in your init-file (with your own prefix of course):

(0blayout-add-keybindings-with-prefix "C-c C-l")

Usage

You have the ability to create new layouts using PREFIX C-c and name them. There you can set up your layout as you want it, open buffers, edit files.

And when you have more than one layout, you can switch between the layouts you have active with PREFIX C-b.

You can also kill the layout that you’re currently visiting with PREFIX C-k

Install

The lazy way (Using use-package)

This requires that you have use-package set up. But it’s in my opinion the easiest way to set up packages.

(use-package 0blayout
  :ensure t

  ;; Optionally set default layout name
  :init (setq-default 0blayout-default "my-default-layout-name")

  ;; Load the mode
  :config (0blayout-mode t))

Using MELPA

You could also have a clause like this to automaticly install it:

(unless (package-installed-p '0blayout)
  (progn
    (package-refresh-contents)
    (package-install '0blayout)))

To activate 0blayout-mode you just put (0blayout-mode 1) somewhere after you loaded it.

Manual install

  • Download 0blayout.el
  • Put the file in some folder like $HOME/.emacs.d/lisp/

Then you can include like this:

(add-to-list 'load-path
             (expand-file-name "lisp" user-emacs-directory))

(require '0blayout)

(0blayout-mode 1)                       ; Activate 0blayout-mode

Name

0b is just a prefix I use for things because I have the domain 0b.se, that’s it.

More Repositories

1

nixconfig

My NixOS config
Nix
89
star
2

webpaste.el

webpaste.el can paste whole buffers or parts of buffers to several pastebin-like services and supports failover if one service fails.
Emacs Lisp
88
star
3

pass-checkup

A pass extension to check against the Have I been pwned API to see if your passwords are publicly leaked or not.
Shell
17
star
4

etu.github.io

Elis Hirwing's personal website
Nix
12
star
5

resume

Nix
5
star
6

etu-slim-skeleton

This is my template or skeleton structure for new PHP project using the Slim Framework
PHP
3
star
7

etuvetica

My crappy font
Perl
3
star
8

maya-overlay

Gentoo overlay with Autodesk's Maya
3
star
9

0bRSS

Simple RSS Reader
PHP
2
star
10

ip.failar.nu

Go program that listen to port 8123 and respond with connecting clients IP address
Nix
2
star
11

gentoo-hardware-notes

Notes about hardware I had to mess around with go get running.
2
star
12

absvgen

Abstract generator of SVG files from a YAML specification
Go
2
star
13

ergodox-keymaps

C
2
star
14

aidstu-overlay

Etu's and adis gentoo overlay
2
star
15

EtuFB

A small PHP lib to auth to facebooks oauth API for iFrame Apps.
PHP
2
star
16

flummbot

Small IRC-Bot in go for my channel
Go
1
star
17

presentations

Nix
1
star
18

mkvcleaner

Cleans unwanted tracks from video files
Go
1
star
19

etu-slim-libs

This is my libraries for new PHP project using the Slim Framework
PHP
1
star
20

esp8266-ulisp-nixos-setup

1
star
21

SL-API

Detta projekt är typ dödat nu till fördel för SLTravel.PY som jag har som repo.
1
star
22

JSTD

JavaScript
1
star
23

EtuFW

Small PHP Framework, written by myself for a jobtest
PHP
1
star
24

3drubiks

Experiments to develop a 3D Rubiks Cube in Canvas with three.js
JavaScript
1
star
25

3d-models

My repository of openscad 3d models
OpenSCAD
1
star