From a9d919e8dd08aa3605ca59e79c669123401ddbad Mon Sep 17 00:00:00 2001 From: Susam Pal Date: Thu, 22 Jun 2023 21:23:52 +0100 Subject: [PATCH] Add version 0.3.0 screenshots --- README.md | 40 ++++++++++++++++++++++++++-------------- meta/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++------ meta/foo.el | 2 +- 3 files changed, 69 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 4b8eab3..4e983fe 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ explained in detail later in the [Emacs Server](#emacs-server) and [Emacs Launcher](#emacs-launcher) sections. Here is how the Emacs environment is going to look after setting up this project: -[![Screenshot of Emacs][demo-screenshot]][demo-screenshot] +[![Screenshot of Emacs][demo-img]][A screenshot of Emacs customized with Emfy] -[demo-screenshot]: https://i.imgur.com/5TPWniw.png +[demo-img]: https://susam.github.io/blob/img/emfy/emfy-0.3.0.png If you are already comfortable with Emacs and only want to understand the content of [`.emacs`] or [`em`], you can skip ahead directly to @@ -650,8 +650,10 @@ choose another theme, or skip this section. By default the Wombat theme looks like this: - Screenshot of Wombat default theme + Screenshot of Wombat default theme In this theme, the cursor, search matches, and comments can often be difficult to spot because they are all colored with different @@ -663,8 +665,10 @@ choose another theme, or skip this section. this: - Screenshot of Wombat custom theme + Screenshot of Wombat custom theme - Choose a darker shade of gray for the background color to improve the contrast of the theme: @@ -834,8 +838,10 @@ lines at the end of the file. in the screenshot below: - Whitespace highlighted + Screenshot of whitespace highlighted in Emacs The screenshot above shows one stray trailing space in the second line and two trailing spaces in the third line. These trailing @@ -855,8 +861,10 @@ lines at the end of the file. feature: - Non-existent line indicators + Screenshot of non-existent line indicators The screenshot shows that there are two blank lines just before the end of the buffer. The tiny horizontal dashes on the left @@ -878,8 +886,10 @@ lines at the end of the file. file that does not contain a terminating newline: - File without terminating newline + Screenshot of a file without terminating newline If there is only one line in the buffer and that line is terminated with a newline then a left-bracket (`[`) appears in the @@ -889,8 +899,10 @@ lines at the end of the file. contains a terminating newline: - File with terminating newline + Screenshot of a file with terminating newline To summarize, these shapes (`[`, `⌞`, or `⌝`) show where the last newline of the buffer exists. The last newline of the buffer diff --git a/meta/Makefile b/meta/Makefile index 5dcbe1f..5d65380 100644 --- a/meta/Makefile +++ b/meta/Makefile @@ -1,14 +1,50 @@ -main: +loc: + f() { grep -vE '^$$|^;|^ *".*"$$' ../.emacs; }; f; f | wc -l + +demo: mv ../.git ../git - emacs -q -l ../.emacs --eval '(progn (set-frame-size (selected-frame) 132 32) (find-file "example.md") (split-window-right) (find-file "example.el") (goto-char (1- (point-max))) (message ""))' + cp ../.emacs init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 132 32) (find-file "example.md") (split-window-right) (find-file "example.el") (goto-char (1- (point-max))) (message ""))' mv ../git ../.git -loc: - f() { grep -vE '^$$|^;|^ *".*"$$' ../.emacs; }; f; f | wc -l +wombat1: + mv ../.git ../git + sed -n '1,/load-theme/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "foo.el") (message ""))' + mv ../git ../.git + +wombat2: + mv ../.git ../git + sed -n '1,/Interactively do things/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "foo.el") (message ""))' + mv ../git ../.git + +lorem1: + mv ../.git ../git + sed -n '1,/show-trailing-whitespace/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "lorem1.txt") (message ""))' + mv ../git ../.git + +lorem2: + mv ../.git ../git + sed -n '1,/indicate-empty-lines/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "lorem2.txt") (message ""))' + mv ../git ../.git -lorem: +lorem3: printf '%s' "$$(cat lorem2.txt)" > lorem3.txt + mv ../.git ../git + sed -n '1,/indicate-buffer-boundaries/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "lorem3.txt") (message ""))' + mv ../git ../.git + +lorem4: printf '%s\n' "$$(cat lorem2.txt)" > lorem4.txt + mv ../.git ../git + sed -n '1,/indicate-buffer-boundaries/p' ../.emacs > init.el + emacs -q -l init.el --eval '(progn (set-frame-size (selected-frame) 80 12) (find-file "lorem4.txt") (message ""))' + mv ../git ../.git reset: - mv ../git ../.git + mv ../git ../.git; : + rm -f init.el lorem3.txt lorem4.txt diff --git a/meta/foo.el b/meta/foo.el index 40f6392..22ae491 100644 --- a/meta/foo.el +++ b/meta/foo.el @@ -1,4 +1,4 @@ -;;; Elisp Examples. +;;; Elisp Examples. -*- lexical-binding: t; -*- (defun hello-world () "Show 'hello, world' message."