profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/darth10/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

darth10/chordy 131

A Ruby DSL for printing guitar chords

darth10/akhilwedsmegha.github.io 0

A Simple Wedding Invitation using Octopress/Jekyll

darth10/android 0

GitHub Android App

darth10/angular-express-bootstrap-seed 0

A great starting point for writing AngularJS apps sauced with Twitter Bootstrap and backed by an Express-powered node.js server.

darth10/api-reactor 0

An automagical REST API server

darth10/asp-advanced-swagger-codegen 0

A Swagger Codegen module for serious .NET Core model generation

darth10/AspNetCoreRateLimit 0

ASP.NET Core rate limiting middleware

darth10/big-numbers-clj 0

Simple algorithms with really big numbers

darth10/bm 0

bm.el -- Visual Bookmarks for GNU Emacs

release preactjs/wmr

wmr@3.0.1

released time in 2 hours

MemberEvent

startedstyfle/awesome-online-ide

started time in 13 hours

release preactjs/wmr

create-wmr@0.3.7

released time in 18 hours

release preactjs/wmr

preact-iso@2.0.3

released time in 18 hours

release preactjs/wmr

wmr@3.0.0

released time in 18 hours

release preactjs/wmr

@wmrjs/directory-import@0.3.0

released time in 18 hours

issue commentraxod502/straight.el

Change the variable's default value of a package with straight.el

Powered by straight, auctex, eglot, texlab, and company, I finally figured out a working vanilla Emacs based LaTeX document preparation system. See here for more detailed info, and the following screenshot for a rough impression:

image

hongyi-zhao

comment created time in a day

issue commentraxod502/straight.el

Change the variable's default value of a package with straight.el

Thank you for pointing this out.

hongyi-zhao

comment created time in a day

issue commentraxod502/straight.el

Advice on installing mu4e

I recently got drawn into issues with mu4e again. I've got a fix below.

I encountered this during a doom upgrade:

      > Building mu4e...
      x There was an unexpected error
        Message: error
        Data: (error . ":pre-build command error in \"mu4e\" recipe in command \"(\\\"./autogen.sh\\\")\"")
        Backtrace:
          (signal error (":pre-build command error in \"mu4e\" recipe in command \"(
          (error ":pre-build command error in %S recipe in command %S" "mu4e" "(\"./
          (condition-case err (if (cl-every #'stringp command) (if (apply #'straight
          (let ((command (car --dolist-tail--))) (condition-case err (if (cl-every #
          (while --dolist-tail-- (let ((command (car --dolist-tail--))) (condition-c
          (let ((--dolist-tail-- (if (cl-every #'listp commands) commands (list comm
          (let ((default-directory repo) (commanderror nil)) (let ((--dolist-tail-- 
          (if repo (let ((default-directory repo) (commanderror nil)) (let ((--dolis
          (let* ((commands (and t (if post post-build pre-build))) (repo (and comman
          (let* ((--cl-rest-- recipe) (pre-build (car (cdr (plist-member --cl-rest--

My mu4e is symlinked out of a nix directory. nix likes to keep everything read-only, and I see no autogen.sh to run. There are already .elc files there (I assume the nix derivation build put them there). So I disabled the pre-build step:

(package! mu4e
  :recipe (
           :local-repo "~/.nix-profile/share/emacs/site-lisp/mu4e"
           ;; pre-build must be disabled when using the nix derivation - in part
           ;; because it is alreadt built, but also because the directory is
           ;; read-only because that's how nix likes to do things.
           :pre-build ()
           )
  )

"~/.nix-profile/share/emacs/site-lisp/mu4e" comes from a symlink, which is documented earlier in this thread.

I apologize if this necro-posting is considered distasteful. My (perhaps poor) justification is that searches for pre-build issues relating to straight.el and mu4e bring me back here. Perhaps this will help someone else.

falloutphil

comment created time in a day

issue commentraxod502/straight.el

Change the variable's default value of a package with straight.el

That's an abuse of the :pre-build keyword. It was not designed to configure packages. The :pre-build steps are only run when the package is built/rebuild, so if you quit Emacs and restart and no build is necessary, TeX-auto-global will not be set to your desired variable.

hongyi-zhao

comment created time in a day

startedcariboulabs/cariboulite

started time in a day

starteddirien/k3sair-cli

started time in a day

release fluentmigrator/fluentmigrator

v3.2.17

released time in a day

issue commentraxod502/straight.el

Change the variable's default value of a package with straight.el

Thank you. Based on your hints, the following does the trick:

(straight-use-package
 `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    `("bash" "-c" "cd" ,(straight--repos-dir "auctex"))
                    ("./autogen.sh")
                    ("./configure")
                    ("make")
                    ("sudo" "make" "install")))))
                    (setq TeX-auto-global "~/.local/var/auctex/")
                                                                )
hongyi-zhao

comment created time in a day

issue closedraxod502/straight.el

Change the variable's default value of a package with straight.el

On Ubuntu 20.04, I use the following code snippet to install auctex:

(straight-use-package
 `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    `("bash" "-c" "cd" ,(straight--repos-dir "auctex"))
                    ("./autogen.sh")
                    ("./configure")
                    ("make")
                    ("sudo" "make" "install"))))
    :init
    (setq TeX-auto-global "~/.local/var/auctex/")
                    ))

In the above settings, I want to change the value of the variable TeX-auto-global, which will be used by the function TeX-auto-generate-global to hold the generated macros and environments info files.

But when I check its value with C-h v TeX-auto-global RET, it still assigned with its original value as shown below:

image

Any hints for this problem?

Regards, HY

closed time in 2 days

hongyi-zhao

issue commentraxod502/straight.el

Change the variable's default value of a package with straight.el

You are confusing straight-use-package with use-package. The former has no :init keyword.

hongyi-zhao

comment created time in 2 days

release openfaas/faas-cli

0.13.13

released time in 2 days

release openfaas/faas-netes

0.13.4

released time in 2 days

release openfaas/faas-cli

0.13.12

released time in 2 days

release openfaas/faas-provider

v0.18.5

released time in 2 days

PR opened raxod502/straight.el

Remove straight--normalize-alist

Function is only called during straight-expand-files-directive'. We can usecl-pushnew` instead.

I believe this will be equivalent. Seem OK to you @raxod502?

+10 -38

0 comment

2 changed files

pr created time in 2 days

release akkadotnet/akka.net

1.4.21

released time in 2 days

startedhzeller/air-purifier-box

started time in 3 days

release cilium/cilium

v1.10.1

released time in 3 days

issue closedraxod502/straight.el

Pass the relevant valules obtained by straight's variable/function to the shell commands used in pre-build section.

According to the instruction given in auctex's INSTALL file, I compose the following lisp snippet for using it from local Git repo:

(straight-use-package
 `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    ("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")
                    ("./autogen.sh")
                    ("./configure" "--without-texmf-dir" "--with-lispdir=.") 
                    ("make")
                    )))))

     (setq TeX-data-directory (straight--repos-dir "auctex")
           TeX-lisp-directory TeX-data-directory)

     (eval-after-load 'info
        '(add-to-list 'Info-additional-directory-list
                      (concat (straight--repos-dir "auctex") "doc")))

(load "auctex.el" nil t t) 
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

As we have discussed before, the lisp code line below is needless due to straight.el's inner operation mechanism:

("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")

But from a technical point, I want to know if I can pass straight's function result, i.e., (straight--repos-dir "auctex") to the above shell command for convenient variable substitute.

Regards, HY

closed time in 3 days

hongyi-zhao

issue commentraxod502/straight.el

Pass the relevant valules obtained by straight's variable/function to the shell commands used in pre-build section.

Should be unnecessary.

Thank you for letting me know this.

Since the entire recipe is in a backquoted list,

Based on your hints, I tried out the following expression in the *scratch* buffer:

(shell-command "bash" "-c"("cd" (straight--repos-dir "auctex")))`

So the corresponding code line used in ~/.emacs.d/init.el should look as below:

("bash" "-c"("cd" (straight--repos-dir "auctex")))`

hongyi-zhao

comment created time in 3 days

fork purcell/hdf4

Official HDF4 Library Repository

fork in 3 days