Skip to content

dalanicolai/dala-emacs-lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dala-emacs-lisp

Handy or fun functions for Emacs

org-fold-restore.el

(Re)store folding state of org files for org version >= 9.6.

better-orgfold-separate-file.el

(Re)store folding state of org files. Improved/cleaned up version of https://www.emacswiki.org/emacs/orgfold-separate-file.el

The single improvement is that this version prevents that the created ‘.fold’ files get added to the `recentf-list’. Furthermore some redundant code has been removed. Thanks to Cassiel-girl.

ray-tracer.org/el

A simple but very nice ray-tracer in elisp. This org file contains a translation from the ulisp article at http://www.ulisp.com/show?2NWA to elisp Additionally this file uses ppm-gen.el from https://www.emacswiki.org/emacs/PpmGen for plotting

json-to-yasnippet.el

Very basic vscode json snippet file to yasnippet translator. For usage see initial comment within file.

vim-help.el

Mode and functions for consulting vim’s help from within Emacs. Use M-x vim-help to select and jump to some subject. Within the help files, when the cursor is on a tag, use M-x vim-help-find-tag (or simply press C-] or M-.) to jump to the subject. Or, even better, install the link-hint library to jump to tags by pressing o. The package is very minimal, but it does its job quite well already by covering 95% of the use cases (e.g. a few links don’t work).

pdf-avy-highlight.el

This is a function that uses avy to highlight by keyboard with pdf-tools. After calling the function you type the initial pattern to set where to highlight from, and subsequently type the number of it’s label. Then repeat this to set the end of the highlighted region. It works fine, but I concluded that using the mouse is maybe sometimes not that bad 😉.

In the demo below the first highlight is created using the mouse, while the second is created using pdf-avy-highlight (both slowly, so you can follow what happens) avy-highlight-demo.gif

ob-template.el (has been contributed to orgmode.org)

Ah somewhat updated version of ob-template.el as found in section Develop support for new languages at the org babel website.

Some few small tips:

  • start with instrumenting see edebug the org-babel-execute:template function, and subsequently evaluate some test-code block. In this way you can easily figure out how org-babel processes header arguments. Then in the end, the result printed by a code block simply consists of the output of that function.
  • The trick is to process the vars/result-params and the full=body variable (let form within org-babel-execute:template function) and send the appropriate lines to some inferior process (or as an argument to some shell command). The inferior process can be created in the function org-babel-template-initiate-session. The result returned by the inferior process (or by the shell command), should be returned by org-babel-execute:template (of course you might further process it before you return it).
  • Don’t forget to read the comments in the ob-template file, e.g. for sending/receiving output to/from an inferior process, the functions in org-babel-comint might be useful, etc…

google-keyboard-translate-pdf-textregion.el

Translate text-regions in pdf by keyboard (similar to pdf-avy-highlight.el decribed above). Requires https://github.com/atykhonov/google-translate

pdf-continuous-scroll.el

See here and the enhanced minor mode version here

doc-view-continuous-scroll-djvu.el

DOES NOT WORK WELL. pdf-continuous-scroll.el ported to doc-view-mode. However, it worked well until (experimental) functions were added to make it sync with djvu.el buffers. So although it could easily made to work with all doc-view buffers by removing the djvu specific functions, it currently only works with djvu documents.

doc-view-continuous-scroll.el

Very quick attempt to revert doc-view-continuous-scroll-djvu.el to a working state for doc-view.

list-factory.el

Mathematica style ‘list comprehensions`. Usage examples are in the erf-deftest at the end of the file. Although I have found out now that the `dash` package already has the `-table` function which is probably a better alternative (but like Mathematica it only supports iteration over lists, not over strings)

evil-switch.el

A simplified equivalent of the vim-switch plugin (I quickly wrote it because I was not aware of the more powerful and generally nicer parrot package).

alist-tree-widget.el

Create tree-widgets from alists

box-pointer.el

Some quickly written code for drawing dotted-pair representation of the smallest, and simplest lists. For larger/more complex lists there is pair-tree. For small lists, the representation from this code looks better.

Addtional projects

A newer version of djvu2 using Emacs its native svg rendering capabilities.

Show djvu annotations within Emacs (extending djvu.el). There is also a Spacemacs djvu layer which additionally implements smooth scrolling and convenient navigation using imenu.

A package to create and attach Table of contents to pdf and djvu documents. There is also a toc-layer for Spacemacs

A package for creating quick svg sketches.

About

A repository to share my emacs lisp code experiments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published