-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new features: text direction, directional macro calls ↑→↓←
- Loading branch information
c
committed
Nov 9, 2024
1 parent
03cb4f2
commit 4885403
Showing
6 changed files
with
342 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
;;; uniline.el --- Draw lines, boxes, & arrows with the keyboard -*- coding:utf-8; lexical-binding: t; -*- | ||
|
||
;; Copyright (C) 2024 Thierry Banel | ||
|
||
;; Author: Thierry Banel tbanelwebmin at free dot fr | ||
;; Version: 1.0 | ||
;; URL: https://github.com/tbanel/uniline | ||
|
||
;; Uniline 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. | ||
|
||
;; Uniline 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/>. | ||
|
||
;; a macro cannot be defined inside another macro, | ||
;; so this macro is defined outside | ||
(setq last-kbd-macro (kbd "<kp-subtract> <right> C-<up> C-<right> <down>")) | ||
|
||
(uniline-bench | ||
"<return> <down> <down> <right> <right> a a a a a a a a a a a a a a a a a a a a C-a C-k C-y C-a <down> C-y C-a <down> C-y C-a <up> <up> <up> <up> <down> <up> <right> <down> C-x e e e e <right> <right> <right> <down> <down> <down> <left> <left> <left> <left> <left> <up> <up> <up> <return>" | ||
"\ | ||
╭╮╭╮╭╮╭╮╭╮╭╮ | ||
╶┼┴╯╰╯╰╯╰╯╰╯│ | ||
╰╴aaaaaaaaa╶╮aaaaaaa | ||
╭aaaaaaaaaaa╯aaaaaaa | ||
╰╴aaaaaaaaa╶╮aaaaaaa | ||
╭╯ ╭╯ | ||
╰╮ ╰╮ | ||
│╭╮╭╮╭╮╭╮╭─╯ | ||
╰╯╰╯╰╯╰╯╰╯ | ||
") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.