Posts by brokenix@emacs.ch
(DIR) Post #Ad9ye1gLmG3Md58IAS by brokenix@emacs.ch
2023-12-25T06:39:21Z
0 likes, 1 repeats
Add to your .emacs.el:(autoload 'dired-async-mode "dired-async.el" nil t)(dired-async-mode 1)This will allow you to run asynchronously the dired commands for copying, renaming and symlinking. If you are a helm user, this will allow you to copy, rename etc... asynchronously from helm. Note that with helm you can disable this by running the copy, rename etc... commands with a prefix argument.Majority of the tasks/targets are gathered by either parsing files(makefiles) or parsing the output of the taskrunner/build systems which have the ability to list all targets/tasks in the project. This can sometimes be a bit slow but this is made to be a (usually) one time cost and is asynchronous. All tasks retrieved are saved in a cache which persists after an Emacs instance is killed and then loaded up again when emacs/ivy-taskrunner is started.#emacs #make https://github.com/jwiegley/emacs-asynchttps://github.com/emacs-taskrunner/helm-taskrunner
(DIR) Post #AdBjPoQBAqjaS2FkNE by brokenix@emacs.ch
2023-12-26T01:22:52Z
0 likes, 1 repeats
home.nix can be be a function that accepts the various inputs and returns a module function.#Emacs generated nix profileEmacs can drive its own nix profile if it wants to, and this can be done to provide 3rd party dependencies with or without home manager integrations.Emacs generated home manager moduleEmacs can also write its own module and have the home.nix import it so that when Emacs makes changes to that module, it can ensure that they are picked up by running the switch command on its own.If something is in your way, attempt to extract it to a new .el file or parameterize it. Maintaining an independent branch may become too painful over time, but could be viable if you are doing local development on posimacs (recommended for faster iteration). If your #lisp files grow into a first-class package, of course try to publish it on #Melpa or where elpaca can use it from #git source. For the last-mile configuration, bare .el files are appropriate.#homemanager #nix https://github.com/positron-solutions/posimacs
(DIR) Post #AdBkqa2kq2NRdFcl0a by brokenix@emacs.ch
2023-12-26T03:06:35Z
0 likes, 1 repeats
In the type tunnel pattern, a generic interface layer uses a family of shims to translate a heterogeneous set of types to a single primitive type used by an underlying API to rewrite #Emacs core in CL is not a trivial task. Implementing Emacs renderer and all of its features is not something one can just do in an afternoon. There is about ~1600 EL primitives written in C. Of those, there is ~200 which also are #CL primitives and which some out with EL shim to CL. Some of those ~1400 left are not needed due to nature of having Emacs in sbcl; like not running on some exotic OS:s or not needing things like native compiler ( #sbcl itself is a native compiler). A huge part of implementing those ~1400 primitives is probably not so hard, it is just translating to already provided functionality in some form for I/O, networking, etc. But implementing Emacs renderer and text processing is a huge and difficult part and should not be underestimated#Guile can implement Emacs Lisp better than Emacs can.We can compile Emacs Lisp to Guile's VM, and make C shims to present a suitably compatible C interface to the rest of Emacs' C primitives.No one will notice! Except that after a switch, Emacs would be faster, more powerful, and have the ability to access all of Guile's facilities -- the Scheme language, other languages implemented for Guile (Javascript, Lua, ...), a proper ffi, dynamically loadable libraries, a module system, the numeric tower (rationals, bignums, etc), Guile's existing libraries, delimited continuations (!), fast bytevector access, native threads, etc.On a language level, I am convinced that not only can Guile implement Emacs Lisp, but it can provide a coherent story for tight interaction between e.g. minor modes in Javascript and Scheme and Elisp, etc. More details will come later, though feel free to bring up specific points.There have been some suggestions on the list that "Guile people want to rewrite Emacs in Scheme". Though Scheme does have some facilities to offer env SHELLOPTS=xtrace \ BASH_XTRACEFD=7 7>&2 \ PS4='[$?][$BASHPID|${BASH_SOURCE:-$BASH_EXECUTION_STRING}|$LINENO]+ ' \ sh -c 'env sh -c /; exit'[0][30625|env sh -c /; exit|0]+ env sh -c /[0][30626|/|0]+ /sh: /: Is a directory[126][30625|env sh -c /; exit|0]+ exithttps://www.reddit.com/r/emacs/comments/11nf8ry/rebuilding_emacs_from_scratch_what_would_you_do/https://news.ycombinator.com/item?id=23236569
(DIR) Post #AdRsArTG5rDHoaEYD2 by brokenix@emacs.ch
2024-01-02T21:51:48Z
0 likes, 1 repeats
if you run #Emacs from a shell started by su and XDG_CONFIG_HOME is not set in your environment, Emacs tries to find your own initialization files, not that of the user you are currently pretending to be. The idea is that you should get your own editor customizations even if you are running as the super user.More precisely, Emacs first determines which user’s init file to use. It gets your user name from the environment variables LOGNAME and USER; if neither of those exists, it uses the effective user-ID. If that user name matches the real user-ID, then Emacs uses HOME; otherwise, it looks up the home directory corresponding to that user name in the system’s data base of users.--Manuals
(DIR) Post #AdUZNdjh9hDnKJBIVU by brokenix@emacs.ch
2024-01-04T05:09:20Z
1 likes, 0 repeats
@mja yes the work need be addictive
(DIR) Post #AdZ8Y3cI3plJW9GCMi by brokenix@emacs.ch
2024-01-06T09:33:32Z
0 likes, 0 repeats
Really miss the #homemanager util on #guix where i could just manage all my dotfiles with it in $HOME and could just give the #nix profile path in bash in init , I had nearly nothing in /root/.config* and never cared about whether to source .profile or .bash-profile based on how i append my list of pkgs in home.comfiguration ( fwiw source the former when you append with specification / (output?) in scm) .Case in point after a couple of baffled days , i now realize that my #nyxt config had no error ( how could it , it was working just fine elsewhere) , its just that it was fetching it config from * , while i had it in ~/.config/nyxt Quick and dirty way was to just copy the latter to the former path of finding the configsimilarly emacs-pkg were listed in config.scm, but they could only be found by $USER and not $ROOTyes nix exprs need not eval below a minimum version , bit that s not my immediate concern
(DIR) Post #AdczT1nAobXC5D0lyC by brokenix@emacs.ch
2024-01-08T05:45:58Z
0 likes, 0 repeats
#regex folks what's your recipe to ignore #emacs autosave files for #git
(DIR) Post #AdgawJvmQnFqAVSAlc by brokenix@emacs.ch
2024-01-09T23:31:31Z
0 likes, 1 repeats
#Emacs should become a #Wayland compositorhttps://emacsconf.org/2022/talks/wayland/
(DIR) Post #AhlV9K0utilVpAiWYa by brokenix@emacs.ch
2024-05-11T00:43:30Z
0 likes, 0 repeats
@BootsChantilly its not just misogyny its inhuman , a marriage can go bad for the man or the woman .
(DIR) Post #AhorL2nfVKwgNUOXyq by brokenix@emacs.ch
2024-05-06T07:36:37Z
0 likes, 0 repeats
Using #lei , b4, and #mutt to do #kernel developmenthttps://josefbacik.github.io/kernel/2021/10/18/lei-and-b4.html
(DIR) Post #AhqCe7IHJUry0pblJY by brokenix@emacs.ch
2024-05-06T08:33:08Z
0 likes, 0 repeats
#Gujarat HC refuses urgent hearing of plea challenging #BJP’s Surat win: ‘File an #election petition, PIL cannot be entertained’ | Ahmedabad News - The Indian ExpressThis a variant of #marryganderingIs this a fault of #law or #electioncommissioners or both https://indianexpress.com/article/cities/ahmedabad/gujarat-hc-hearing-plea-challenging-bjp-mukesh-dalal-surat-win-9298697/
(DIR) Post #AhqlQZTREzzrkj6XvE by brokenix@emacs.ch
2024-05-06T01:17:57Z
0 likes, 0 repeats
https://hachyderm.io/@LGUG2Z/111411343737350563
(DIR) Post #Aht44C7NgQaaOGkbr6 by brokenix@emacs.ch
2024-05-06T04:54:28Z
0 likes, 0 repeats
a #shebang to ./ your #nix expressionshttps://discourse.nixos.org/t/c-u-r-s-e-d-n-i-x/12417/2?u=carnotweat
(DIR) Post #AhwI8slb2YZqeaZQzg by brokenix@emacs.ch
2024-05-06T06:40:07Z
0 likes, 0 repeats
adding your keys to remote systemwait can an rsa #ssh key have an ED25519 fingerprint?
(DIR) Post #AiOwmsKHXAxXSmIU7c by brokenix@emacs.ch
2024-05-29T22:46:49Z
0 likes, 0 repeats
#doas : multiple security issuesBuffer overflow (privilege escalation to root)Broken UID parsing falls back to root (CVE-2019-15900)Incorrect group change behaviour (CVE-2019-15901)https://github.com/slicer69/doas/pull/23
(DIR) Post #AiOwmuo8JA1f9wHLvc by brokenix@emacs.ch
2024-05-29T23:54:32Z
0 likes, 0 repeats
@ramin_hal9001 and I am auth' ing with doas and ssh_auth keys ,on nixos , that's getting tricky I ll try chroot
(DIR) Post #AiiTGCTRHXkoVa6fFA by brokenix@emacs.ch
2024-06-08T11:28:43Z
0 likes, 0 repeats
@foone 3 - figuring out a clever way, only to realise how stupid it was in retrospect
(DIR) Post #AiyD2PcBgmf62X6nVQ by brokenix@emacs.ch
2024-06-16T01:26:55Z
0 likes, 0 repeats
@foone ```(defun game-repl() (loop (print (eval (read))))) ``````(game-repl()) look()```??You always have a choice```(require 'cl) (loop (setq x (read)) (if (eq x 'exit) (return) (print (eval x))))```To put work in breaking out of loops , which re infinite if you don't change the way you do things
(DIR) Post #AjJyL1eEiGlUlZ38yW by brokenix@emacs.ch
2024-06-26T12:18:29Z
0 likes, 1 repeats
Do you know how to make yoghurt? The first step is to add yoghurt to milk! How can you build a compiler like #GCC ? The first step is to get a compiler that can compile the compiler.Compilers are often written in the language they are compiling. This creates a chicken-and-egg problem that leads users and distributors to rely on opaque, pre-built binaries of those compilers that they use to build newer versions of the compiler.To gain trust in our computing platforms, we need to be able to tell how each part was produced from source. We believe that opaque binaries are a threat to user security and user freedom since they are not auditable; our goal is to minimize the amount of bootstrap binaries.https://bootstrappable.org/
(DIR) Post #AkNxX4hut3qApzYU6q by brokenix@emacs.ch
2024-07-28T09:43:42Z
0 likes, 0 repeats
@foone the former an exaggeration in parts , that fella was decrypting their messages , which turn was helpful in killing NazisYes the latter is a fair claim