Skip to content

Commit

Permalink
Start using partial
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Feb 5, 2025
1 parent 24cb7d7 commit dad7206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
((nil
(indent-tabs-mode . nil))
(emacs-lisp-mode
(read-symbol-shorthands
("partial" . "llama--left-apply-partially")
("rpartial" . "llama--right-apply-partially")))
(".github"
(nil . ((truncate-lines . nil)))))
2 changes: 1 addition & 1 deletion lisp/epkg-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Usage:
(prev nil)
(n 0))
(when (numberp (car header))
(setq sort (apply-partially (lambda (n r) (nth n r)) (car header)))
(setq sort (partial #'nth (car header)))
(setq header (cdr header)))
(dolist (row rows)
(unless (eq row 'hline)
Expand Down

0 comments on commit dad7206

Please sign in to comment.