-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
;;; _el_lib.el --- Emacs Lisp Layer | ||
;;; Commentary: | ||
;;; Code: | ||
|
||
;; | ||
;;; Includes | ||
|
||
(require "uiop") | ||
|
||
;; | ||
;;; Core | ||
|
||
(defun qob-el-2str (object) | ||
"Convert to string." | ||
(cond ((stringp object) object) | ||
((pathnamep object) (namestring object)) | ||
(t (format nil "~A" object)))) | ||
|
||
(defun qob-el-memq (elt list) | ||
"Mimic `memq' function." | ||
(member elt list :test #'eq)) | ||
|
||
(defun qob-el-member (elt list) | ||
"Mimic `member' function." | ||
(member elt list :test #'string=)) | ||
|
||
(defun qob-el-file-name-directory (filename) | ||
"Return the directory component in file name FILENAME." | ||
(setq filename (qob-el-2str filename)) | ||
(let ((dir (directory-namestring filename)) | ||
(dirve (char filename 0))) | ||
(if (uiop:os-windows-p) | ||
(concatenate 'string (string dirve) ":" dir) | ||
dir))) | ||
|
||
;;; End of _el_lib.lisp |
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
;;; Code | ||
|
||
(qob-setup) | ||
(qob-init-ql) | ||
|
||
(defun qob-dists--print (dists) | ||
"Print list of dists." | ||
|
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
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