Emacs

314 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
401
 
 

Hello, I'm currently experiencing a lot of input lag and slowness when working on javascript projects. May I ask what extra configuration I'm missing in order to fix this issue? I'm using doom emacs. My configuration looks as follows:

(use-package! lsp-mode
  :hook
  (rustic-mode . lsp)
  (json-mode . lsp)
  (sh-mode . lsp)
  (typescript-mode . lsp)
  (javascript-mode . lsp)
  (js2-mode . lsp)
  (rjsx-mode . lsp)
  :commands lsp
  :config
  (setq lsp-log-io nil)
  (setq lsp-eldoc-render-all nil)
  (setq lsp-inlay-hint-enable nil)
  (setq lsp-lens-enable nil)
  (setq lsp-signature-render-documentation nil)
  (setq lsp-signature-auto-activate nil)
  (setq lsp-eldoc-enable-hover nil)
  (setq lsp-modeline-code-actions-enable nil))

(use-package! lsp-ui
  :hook (lsp-mode . lsp-ui-mode)
  :config
  (setq lsp-eldoc-enable-hover nil)
  (setq eldoc-documentation-functions nil)
  (setq lsp-ui-sideline-enable nil)
  (setq lsp-ui-sideline-show-diagnostics nil)
  (setq lsp-ui-sideline-show-hover nil)
  (setq lsp-ui-peek-always-show nil)
  (setq lsp-eldoc-render-all nil)
  (setq lsp-eldoc-enable-hover nil)
  (setq lsp-ui-doc-enable nil))

As you can see, I have most lsp features disabled to improve performance, but yet I'm having a bad experience while working on JS files. I'd kindly appreciate any suggestion.

402
2
submitted 1 year ago* (last edited 1 year ago) by yantar92 to c/emacs
 
 
  • Random interesting links

  • Nick Anderson mentioned Khoj (https://khoj.dev/)

    • It is an AI indexer for Org/MD/txt/pdf files and Github repositories
      • Allows querying Org notes, remote repository readmes, and documents using natural language, just like ChatGPT (but on your own dataset).
    • Can be used locally via pytorch/Llama 2
    • Can connect to ChatGPT
    • Implement its own python-based Org parser
  • Why asked about neovim-friendly configs

    • Not exactly Org-specific, but the usual suggestions are Doomemacs and evil-mode in vanilla Emacs
    • Also, Nick Anderson reminded about Spacemacs (https://www.spacemacs.org/)
      • Unlike Doom emacs, which is fast, but not always stable, Spacemacs is an old, stable project. Although, AFAIR, Spacemacs is known for its slowness due to large number of packages.
  • Nick Anderson shared https://github.com/unhammer/org-rich-yank

  • Carlo Tambuatco asked about what is tree-sitter and how it is used in Emacs

  • There was a demo demonstrating how to export texinfo manual to HTML with source code examples fontified as in Org mode

    • The motivation is limited Org support for manual authoring

      • ELPA, when generating manuals from Org sources, does not use the latest Org version, with some features lacking.
      • While Org supports org to texi export, only a limited subset of texinfo markup is supported, as Org is not specialized for manuals and does not have a notion of specialized markup like , , , etc
      • Also, Org does not yet support glossaries and indexes as well as Texinfo does. Though see https://github.com/tecosaur/org-glossary, which is an experimental implementation by one of the Org contributors.
    • One downside of texinfo is that code snippets are not colored

      • To solve this problem, https://github.com/hniksic/emacs-htmlize and Org publishing are utilized

        • The manual source is written in texi and then exported to html during publishing
        • The generated HTML is further processed (via ~org-publish-after-publishing-hook~), taking the code in HTML, passing it through ~htmlize~ (just like what Org does in ~org-html-fontify-code~), and replacing the HTML code elements with property fontified versions.
      • Unfortunately, the code was only showed on screen and no link was dropped to the chat. So, I am just leaving what I remember from how the code works (above).

      UPDATE from the author of the demo: You can find the code I use for adding highlighting to Texinfo examples here:

      http://git.eshelyaron.com/gitweb/?p=esy-publish.git;a=blob;f=esy-publish.el;h=cb103b78b7dd2f8d0f5260883b61bf651d0650f5;hb=HEAD#l394

    Namely, the function esy-publish-fontify-examples takes the name of an HTML-formatted Texinfo manual, and uses htmlize to markup the contents of "example" blocks in that HTML file.

    The result is very similar to the markup of source blocks in Org documents. For instance you can see some highlighted "examples" here: https://eshelyaron.com/man/sweep/Numbered-Variables.html

  • Ilya Chernyshov asked about his feature request on the mailing list: https://list.orgmode.org/8734yjlhwi.fsf@gmail.com/T/#u

    • His workflow involves repeated tasks (habits)

    • Sometimes, he finishes a task in time, but sometimes he misses it: : * TODO exercise

      : SCHEDULED: <2023-10-08 Sun +1d>

      : :PROPERTIES:

      : :CREATED: [2023-10-01 Sun 01:25]

      : :LAST_REPEAT: [2023-10-10 Tue 02:08]

      : :END:

      : :LOGBOOK:

      : - State "DONE" from "TODO" [2023-10-08 Sun]

      : - State "MISSED" from "TODO" [2023-10-07 Sat]

      : - State "DONE" from "TODO" [2023-10-06 Fri]

      : :END:

    • The problem is =LOGBOOK= entry date

      • Org mode, by default, uses timestamp when the user changed todo state
      • However, for "MISSED" task, the date what the task is marked "MISSED" is not necessarily the same day it is scheduled
      • Ilya wants to be able to use =SCHEDULED= date rather than "today" in the log for certain keywords.
    • The feature might be implemented as an extension of ~org-current-effective-time~, which is already customizeable via ~org-use-last-clock-out-time-as-effective-time~.

  • Nick Anderson asked about previously announced Karl Voit's podcast https://graz.social/@publicvoit/110986422932417006 where he planned to talk about Org mode

    The Informed Life https://theinformed.life/ is the first podcast that will publish an episode with me. The other will be in German and we don't have a recording date yet.

    [...]

    See also https://karl-voit.at/clippings/

    #+end_quote
    
  • visuwesh asked about setting ~org-latex-title-command~ per-file in Org LaTeX export

    • There is no special in-buffer keyword to set it, but one can use
      • #+BIND keyword to set any variable during export (need to customize ~org-export-allow-bind-keywords~)
      • buffer-local/directory-local variables in Emacs
    • visuwesh's setting is rather long and would require adding a lot of boilerplate text to each exported Org buffer
    • ~org-latex-title-command~ is a template, which Org can populate with AUTHOR, TITLE, SUBTITLE, KEYWORDS, DESCRIPTION, CREATOR, LANGUAGE, or DATE
      • visuwesh asked if it is possible to fill arbitrary document metadata to the template Like #+PROF: XXXX and then XXXX being adding to the template.
        • It is currently not possible.
        • One would have to use more generic facilities, like export filters to achieve this.
  • excalamus shared his experience using Org mode on the newest Emacs Android port

  • On searching Emacs (and Org mode) mailing lists

  • A short discussion about the meetup timing

:comments:

[18:27] Welcome to [[bbb:OrgMeetup]]!For help on using BigBlueButton see these (short) tutorial videos.To join the audio bridge click the phone button. Use a headset to avoid causing background noise for others.This server is running BigBlueButton.

[18:31] Ihor Radchenko : The official start 30 minutes from now

[18:49] Ihor Radchenko : random interesting urls: https://github.com/rougier/notebook-mode

[18:49] Ihor Radchenko : https://github.com/ahyatt/ekg

[18:49] Ihor Radchenko : https://yhetil.org/emacs-devel/CANr+fmwRWfKpwVJWv4k2CLYczKNCuRqs4zZijRQ40K9r8YpmKw@mail.gmail.com/

[19:03] Nick Anderson : Several weeks back I came across https://khoj.dev/. Local (or remote if you choose) LLM and indexing of your notes. It's seeing a lot of change but when I first found it, it had specific org-mode parsing support.

[19:04] Nick Anderson : I can't say it's /usable/ yet, but interesting.

[19:04] Carlo Tambuatco : Hello

[19:06] Nick Anderson : The org specific parser (don't know if it's still in use) was headline level search against pytorch embeddings of your notes. Plain text is like fill file.

[19:08] Ilya Chernyshov : hi everyone

[19:09] Nick Anderson : Yeah, I have only used the offline models with it. Interesting, but at least against my corpus, not usable currently.

[19:10] Nick Anderson : parses md and org files out from Github but I coudn't actually get it to complete without running out of memory

[19:10] Nick Anderson : that was just their indexing that it coudlnt do.

[19:11] Carlo Tambuatco : LLama2 is the only LLM it supports?

[19:11] why : what emacs configurations do you recommend for a beginner who has just learned neovim?

[19:12] Nick Anderson : They are workign to add ability to change the local model: https://github.com/khoj-ai/khoj/pull/494/commits/a85ff941ca49538ac6090e4d891e72710737744f

[19:12] Nick Anderson : @why I came via Spacemacs (old vim user).

[19:14] Ihor Radchenko : https://github.com/doomemacs/doomemacs

[19:14] Ihor Radchenko : For people familiar with Vim

[19:15] Ihor Radchenko : another way is just installing evil-mode

[19:15] Nick Anderson : https://www.spacemacs.org/

[19:16] Nick Anderson : but claims are doom is faster, seems more popular. But I have used it since 2016 happily.

[19:17] Carlo Tambuatco : Lazy loading modules

[19:20] Nick Anderson : org-rich-yank doesn't get enough publicity super nice for notes on code etc ...

[19:20] я : why are you have slavic pronounsuation

[19:24] visuwesh : yes

[19:24] Nick Anderson : Yes.

[19:28] Nick Anderson : No.

[19:29] Carlo Tambuatco : Could you talk about tree-sitter (for newbies) and how well it works with older emacs packages? Does it cause any conflicts?

[19:30] Nick Anderson : I see your browser.

[19:30] visuwesh : i see firefox here

[19:30] Nick Anderson : No emacs.

[19:30] Nick Anderson : No emacs

[19:36] Ilya Chernyshov : Ihor, do you know if there's a way to log timestamps of SCHEDULED property, but not timestamps of current time in LOGBOOK each time I change TODO state of repeated task? I couldn't configure org-log-note-headings, because there's no such placeholder that inserts SCHEDULED property timestamp. Only current time timestamp can be inserted. Maybe there's another way of doing that? Also, I can send a patch that adds a new placeholder for that.

I already posted on list.orgmode.org about that 2 days ago, you probably saw the mail :D. I saw the announcement for the meetup half an hour ago and thought to ask you here

[19:36] Nick Anderson : Karl Voit had mentioned being interviewed on some podcast several weeks back, anyone hear any updates on that being released?

[19:36] visuwesh : Is there a way to set the title command for a custom latex class in org via org-latex-classes? I see that you can set a plist element for org-publish but not so for latex export. AFAICT from the doc and ox-latex, it is not possible. Right now, i set org-latex-title-command in a src block but something more compact and "preset" would be nice.

[19:40] Ihor Radchenko : For index/glossary in org export, see https://github.com/tecosaur/org-glossary

[19:43] Ihor Radchenko : https://list.orgmode.org/orgmode/87bkqx4jyg.fsf@localhost/

[19:44] Ihor Radchenko : discussion about making Org a replacement for texinfo

[19:47] Nick Anderson : thats neat

[19:47] Ihor Radchenko : https://orgmode.org/manual/The-open_002dsource-protocol.html

[19:47] Nick Anderson : orgit-forge maybe

[19:50] Nick Anderson : https://github.com/sshaw/git-link

[19:52] Ihor Radchenko : transform internal notmuch email link into mailing list url: https://github.com/yantar92/emacs-config/blob/master/config.org#live-helm-org-ql-search-in-org

[19:52] Nick Anderson : nice, thanks.

[19:54] Ilya Chernyshov : here's the link with the example

[19:54] Ilya Chernyshov : https://list.orgmode.org/8734yjlhwi.fsf@gmail.com/T/#u

[19:57] Ilya Chernyshov : the timestamp of current time is inserted when 'done in org-log-note-headings is configured as "State %s CLOSING NOTE %t"

[19:57] Ilya Chernyshov : the placeholder %t is somewhat useless

[19:58] Ilya Chernyshov : I want a new placeholder that is replaced with a SCHEDULED property before the state is changed. That way you can track when you've done/missed a repeated task

[19:59] Ilya Chernyshov : your mic is off =)

[19:59] Ilya Chernyshov : maybe that's on purpose, I dont' know :D

[20:02] Ilya Chernyshov : I'm so sorry, can I get the record of the meetup? I missed a small part of your reply

[20:03] Ilya Chernyshov : so sorry

[20:03] Ihor Radchenko : https://list.orgmode.org/8734yjlhwi.fsf@gmail.com/T/#u

[20:03] Ihor Radchenko : this is the feature request we are discussing

[20:03] Ihor Radchenko : the possible way to implement it is via org-current-effective-time

[20:03] Ihor Radchenko : %t is already customizeable via org-use-last-clock-out-time-as-effective-time

[20:04] Ilya Chernyshov : thank you

[20:05] Ihor Radchenko : https://karl-voit.at/

[20:05] Ihor Radchenko : Karl's blog

[20:07] visuwesh : yes

[20:09] visuwesh : the thing is i would like to have something simpler than putting the whole command up there since my title command is quite large

[20:10] visuwesh : yess

[20:10] visuwesh : i need to set up a separate page as a title page for my assignment and the command goes around 20 lines or somesuch

[20:10] visuwesh : ah, that would work ig

[20:11] visuwesh : i was hoping to include some other template too, like the prof in charge of the assignment etc. but this is better than copy-pasting

[20:13] visuwesh : right, that's what i did except i imported a tex file instead for my bachelor's thesis/project

[20:13] Nick Anderson : This was where I saw Karl being invited to podcast: https://graz.social/@publicvoit/110986422932417006

[20:13] visuwesh : sry, i meant something like a keyword like #+PROF: XXXX and usesomething like %{PROF} in the titlecommand to say XXXX in the file

[20:14] visuwesh : yes

[20:14] visuwesh : ah, it is using format-spec, ok

[20:15] visuwesh : i will live with setupfile then

[20:15] visuwesh : i see, i will look into using export filters

[20:16] visuwesh : ty, that answers my qn

[20:18] Nick Anderson : Yep, I havent seen anything yet :D

[20:19] Ihor Radchenko : https://emacs.ch/@yantar92/111217525037662745

[20:20] excalamus : I have something to share in just a moment

[20:23] yantar92 (audio) : Po Lu is the author of Emacs Android port

[20:24] Nick Anderson : probably have to make Test the presenter.

[20:26] Nick Anderson : Neat, I have been living with Termux, which is OK

[20:26] Nick Anderson : all the other things exactly

[20:26] visuwesh : You can use software installed inside termux from Emacs Android if you have the 'termux' emacs android apk installed.

[20:26] Ihor Radchenko : https://list.orgmode.org/orgmode/1495820062.205861.1676736033884@fidget.co-bxl/

[20:27] visuwesh : But I think you need to have a specially compiled version of termux too? And there's a specific order you need to install ter,mux and Emacs to have termux apps usable in Emacs. I believe the info is in the Emacs for Android port sourceforge webpage

[20:29] visuwesh : No, I mean to use softaware installed in termux in Emacs android

[20:30] visuwesh : https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/

[20:31] visuwesh : https://yhetil.org/emacs-devel/87wmyz71bx.fsf@yahoo.com/ i hope this is useful too

[20:32] excalamus : there are images included with emacs /share/emacs/29.1/etc/images

[20:32] visuwesh : somewhere down this thread, more explanation on this topic are included

[20:33] Ilya Chernyshov : do you guys now, if it's possible to display svg images in emacs android build?

[20:34] visuwesh : it is actively updated

[20:34] visuwesh : the code in savannah and the apks are built freqly in the sourceforge

[20:34] visuwesh : sourceforge uploads are from Po Lu

[20:35] visuwesh : you could try to see the iamge type of splash image

[20:35] visuwesh : its svg on my laptop

[20:35] Ilya Chernyshov : i'm talking about image-mode being able to display svg. if it's possible, I'll try to test org-timeblock on it

[20:37] Ilya Chernyshov : yeah, thanks, you can see it here https://github.com/ichernyshovvv/org-timeblock

[20:37] Ilya Chernyshov : :D

[20:38] visuwesh : C-h C-a

[20:38] visuwesh : M-x report-emacs-bug maybe?

[20:39] visuwesh : It should be possible since I think Po Lu sends and reads email

[20:40] visuwesh : Oops, sending idk. he only says read. https://yhetil.org/emacs-devel/87edm09nyu.fsf@yahoo.com/

[20:41] visuwesh : To check whether it is really supported, use ‘image-type-available-p’. :P

[20:41] visuwesh : in image-types docstring

[20:41] Ihor Radchenko : image-types is a variable defined in image.c.

Value (svg webp png gif tiff jpeg xpm xbm pbm)

Set

Documentation List of potentially supported image types.

Each element of the list is a symbol for an image type, like jpeg or png. To check whether it is really supported, use image-type-available-p.

[20:41] Ihor Radchenko : :facepalm:

[20:43] Ilya Chernyshov : that's bad

[20:43] Ilya Chernyshov : =(

[20:45] visuwesh : yhetil.org has MUCH better search functionality btw. I think the GNU mailman archive search is still broken :(

[20:46] visuwesh : its f:

[20:47] Ihor Radchenko : https://yhetil.org/emacs-devel/

[20:47] Ihor Radchenko : Emacs mailing list mirror

[20:50] Nick Anderson : Thanks for doing this.

[20:50] Nick Anderson : And maintaining!

[20:50] visuwesh : Thanks everyone

[20:50] visuwesh : It is fine for india too

[20:50] Nick Anderson : I am in central us and i have it playing on the side while I am working.

[20:50] visuwesh : 11:30 pm rn

[20:52] Nick Anderson : There is Emacs ATX as well. https://www.meetup.com/emacsatx/

[20:52] Nick Anderson : Nope.

[20:52] Nick Anderson : Webex.

[20:52] Ihor Radchenko : https://sachachua.com/blog/2023/10/2023-10-09-emacs-news/

[20:52] Nick Anderson : It usually is.

[20:53] Nick Anderson : e.g. https://sachachua.com/blog/2023/10/2023-10-02-emacs-news/ :end:

403
 
 

I just read Mickey's wonderful article on window management, and has given me the push I need to take control over my emacs windows/frames. I have an idea of what I will configure; maximum of two windows per frame, and if is my portrait frame split horizontally and split vertically for my landscape frame, plus some additional config for Magit. Before I take the plunge, I wanted to quickly reach out to see what other people have done for their configs to get some ideas. Figure might also be good to collect a few different configurations of window configs for people interested.

Some configs I have found on the way and will update with any suggestions people have:

  • Karthink's config, good integration with the popper package
  • emacs-pure - has some display-buffer-alist settings for magit which are of interest to me, as the built in magit methods for handling new frames isn't exactly what I want.

Any recommendations, please feel free to share them.

404
 
 

Hello and thank you for reading this. I'm starting my journey to study Emacs, and I'm interested in turning Emacs in my IDE (mainly C, C++, JavaScript, Rust, and Python, etc...) and taking notes. Could you please give me your best suggestion on how to accomplish my goals? Thank you once more, and have a wonderful day/night.

:^

View Poll

405
 
 

In elisp, symbols serve as fundamental data structures that are more foundational compared to strings. This distinction often caused confusion for me until my encounter with the read function.

 ~ $ (type-of (read))
 symbol

The fact that the read function yields symbols instead of strings from user-input was a delightful revelation. This discovery convinces me that the fundamental nature of symbols in elisp when compared to strings.

406
 
 

Hey everybody, first time poster here.

I've been using Emacs for a while now, but just recently starting toying with configs, experiencing new packages, learning some elisp so I can customize my emacs experience and overall making it my own.

A while back I noticed I needed some sort of dark mode functionality to change the theme to a darker one when there is less sunlight. After searching for some packages, I found none that really suited me.

So I decided to write my own: https://github.com/pedroangelo/theme-rotation.el

Check it out and tell me what you guys think. I've also included a sort of related work section in the README that discusses similar packages, and why I didn't found them to my taste.

PS: I wrote this package for my personal use. But if more people find it useful, I'd be quite satisfied with myself.

Also, do you think I should work towards getting it published in MELPA? I don't mind the work if it something that potentially many people might enjoy using.

407
 
 

I just tried out eglot today, and I must say that I am very very impressed. However, like all software, the julia language server has a few quirks that need to be worked around. Long story short, I have two folders (not nested or anything):

  • folder1 - A git repository of a large julia project that I cloned. Starting eglot here only works partially. Anything imported from other packages is a missing reference.

  • folder2 - A folder I created with various scripts that I wrote for the project in folder1. It contains a Project.toml detailing the necessary julia environment for those scripts to work. Starting eglot here works flawlessly. Both functions defined in folder1 as well as the other packages folder1 relies upon are referenced correctly.

Is there a way for me to start eglot in folder2 but have it work as if I have started it in folder1?

I believe one potential solution might be to tell Project.el that the git repository in folder1 belongs to the project in folder2, but I couldn't find a command for doing so.

Alternatively, can I tell eglot in folder1 to connect to the language server that was started by eglot in folder2?

edit: Hope the question makes sense, and apologies if not everything is phrased in the correct language. I'm pretty new to both eglot and project.el. Many thanks in advance for any help or hints!

408
 
 

there's a charm to them

409
410
 
 

Hi, Im not sure if this is the right platform to ask on. Long story short, Im stuck at this GIS job, massive computing experience under my belt, but close to 20% experience in GIS. Im playing around with SmallWorld locally and on a cloned repo. But they also have a Development environment on a remote server. Everyone here says theres no way to use your own Emacs version (28) on this one, except Emacs 23. Do you have any comment on this? Talk to me like Im a child. Im not sure if its an SSH setup. A senior told me it isnt (in a very thick accent). He might be bullshitting. (They use a VPN and sometthing called "f5 networks endpoint inspector")

411
 
 

I'm trying to make my Emacs configuration more reproducible, in part by creating variables with paths to packages, directories which depend on what machine I'm on:

(if my/laptop-p
    (progn
      ...
      (defvar my/mu4e-dir            "/usr/share/emacs/site-lisp/mu4e"
  "Location of local `mu4e' files installed by system package manager")
      ...
                ))

 

Here, my/laptop-p tests if (equal (system-name) "my-thinkpad").

This system works well, so that for the relevant example of mu4e (which is apparently quite tricky to set up in straight.el ) I can use:

(use-package mu4e
  :straight
  (:local-repo my/mu4e-dir
               :type built-in)
               ...
               )

 

The package loads and the configuration works fine.

But doing straight-freeze-versions gives:

straight--dir: Wrong type argument: stringp, my/mu4e-dir

This can be fixed by replacing my/mu4e-dir with the string "/usr/share/emacs/site-lisp/mu4e", but I'd like to avoid this if I can.

  Is there a way I can keep using my defined variable my/mu4e-dir instead of the full path name?

412
 
 

While a for-loop is a straightforward construct in other programming languages, the loop macro, despite its power, can present challenges due to its intricacy. I find myself frustrated by its complexity.

However, its conceptual abstractions are intriguing. Take, for example, the following code snippet:

(loop for i below 10 sum i)

The utilization of the term "below" in this context is particularly striking. Contrastingly, in languages like JavaScript, I typically read "i < 10" as "i less than 10," pronouncing the two words "less than" in order to read the "<" symbol.

The act of reading "<" as "less than" momentarily interrupts my cognitive flow between the two words. The loop macro condenses it as a single word, "below," allowing me to pronounce "i < 10" more succinctly and smoothly, without interruption. Another viable alternative could be "under."

Moreover, the expression `1 < i < 10` can be read as "from 1 to 10."

(loop for i from 1 to 10 sum i)

It enhance code readability mentally and streamline cognitive processing.

413
 
 

Once I saw nil or 'nil from some (setq ..), it usually worried me.

The barely nil appears to be a variable name no more than `foo bar zoo` and there shoud be a value it points to.The quoted 'nil seems to be a data or a value in data mode and there might exist a name it is given.it looks no difference with symbols as 'nilll 'nilllllll or 'nillllllllll as data.

Every time see them, I find myself hesitating, uncertain and disturbing.

This picture tells they are identical and comfort me to get an insight that lisp is much more pragmatic in evovling by patching up.

As a result, I stop worring its theoretical consistency and confidently proceed with using `nil`.

4 disguises of nil

The wizard book SICP states it as:

Lisp was not the product of a concerted design effort. Instead, it evolved informally in an experimental manner in response to users' needs and to pragmatic implementation considerations.

414
 
 

Hi i am a noob and i what to use emacs for writing stories and blogs .... is there any guide you can point me to?

415
 
 

Hi all. I'm a long time Spacemacs user who is just now transferring to a roll my own config. I've been using and loving Magit for years, and I've just discovered Forge while browsing packages to add to my config.

My question is, can you use this for code review? I'd like to be able to view all of the code changes that a Pull Request (my team uses Github) contains and I'd like to be able be able to add comments to changed lines in the PR. I can't figure out how to do that with Magit and Forge. Is this a workflow that's possible and do you have any pointers on how I can achieve this?

416
 
 

If you've used both project.el and Projectile I want to know what are the differences between the two.

I learnt on IRC that Projectile is much older than project.el so there are more plugins for it. But I want to know some specific examples of things that Projectile can do but project.el can't. And specific examples of things that project.el can do but Projectile can't.

Anyone has good experience with both to share this stuff?

417
 
 

I'm exporting an org file with images to html, and using the #+ATTR_HTML attribute to resize the image. That's having no effect, because the Emacs I'm using doesn't have ImageMagick enabled.

Yes, I can rebuild from source and enable it, but presumably the emacs devs disabled it by default for a reason. Furthermore, I'm finding that multiple sources that I might get a prepackaged Emacs from have this feature disabled. Rebuilding from source feels like I'm punching open a hole someone intentionally closed.

Is there a workaround for what I'm trying to do? The best I can come with (other than rebuilding Emacs from source) is to use an external program to resize my image to the size I want it to be. That's fairly cumbersome, and it will clutter my directory with various image sizes as I experiment and figure out what i want. Any suggestions?

418
 
 

I'm having a very strange bug when using emacs remotely. Currently my .emacs file is commented out except the lines defining the theme:

When i start editing a file, i experience a severe display bug that prevents me from reading an edited line until i quit and reload the file, It is difficult to explain, but i've attached a screenshot of a line of text before and after typing the string "bannana bannana bannana bannana" at the start of the line (and pressing no other keys). I can start emacs with the -q flag to avoid this error, but I would prefer not to as I very much like having the theme set. I've also tried enabling a theme after starting with -q (in case there is a typo in my emacs file), and I get the same errant behavior.

Has anyone here encountered a bug like this before?

https://preview.redd.it/elor4c3jwutb1.png?width=681&amp;format=png&amp;auto=webp&amp;s=e6b5673f2c1d0fd365eb38543a607cd01c943cc0

419
 
 

I am using EWW to read articles and I want to capture notes into an exisiting file not part of capture templates. The overall workflow is as follows. Lets say I want to catch up on the GPT agents of generative AI and prompt engineering. I google the topic in EWW and just read with a org file open on the side buffer. I want to take notes and capture quotes into a that org file. when I select text from EWW, and intiate capture I want to insert text into the org file on the side where the point (cursor) is or even at the end of the file. How can I configure org-capture for this?

420
 
 

I am using EWW to read articles and I want to capture notes into an exisiting file not part of capture templates. The overall workflow is as follows. Lets say I want to catch up on the GPT agents of generative AI and prompt engineering. I google the topic in EWW and just read with a org file open on the side buffer. I want to take notes and capture quotes into a that org file. when I select text from EWW, and intiate capture I want to insert text into the org file on the side where the point (cursor) is or even at the end of the file. How can I configure org-capture for this?

EDIT:

Think of it like this. I want to have a org file each reading session and I have have multiple reading sessions in parallel (session don't mean single chunk of time). How can i configure org-capture so that I can create a new org file for each reading session. or org-capture is not the right tool for this? Some other workflow?

421
422
 
 

Seems as if one wants to learn lisp, one has to learn emacs first. That said, I am looking for resources for the absolute beginner to learn emacs, looking for something along the lines of Common lisp A gentle introduction to symbolic computation., but for emacs. Something that assumes you know nothing, starts at the absolute beginningwith lots of exercise and answer to those exercise. Any help will be appreciated.

Thanks

For the record I have been through search, but the signal to noise ratio is pretty high.

423
 
 

I'm interested to know what the future of remove development with emacs might look like. I'm a long time emacs user, and use rust, lsp-mode, magit and projectile heavily. The remote experience with tramp just isn't very good. I've had to work around several bugs that lead to hangs, and even though I'm only ~20millis away from my remote machine performance is pretty bad. I believe I've already done everything I can to make it fast (ssh control master, etc.), and I'm still not happy. On the other hand, VSCode (which I'm not familiar with) or IntelliJ make remote development a breeze. I really like how they hide latency, and handle reconnects well. I've also tried terminal emacs on the remote machine, but I just can't deal with the input lag.

It's remarkable how emacs has been able to adapt over the years, and so I'm interested to hear about some ideas to keep emacs relevant for this usecase.

424
 
 

I know this can be done via #+attr_latex: :placement [] over the figure itself, but is there a variable I can set this parameter to always be [H] rather than its default value ([htbp]?

425
 
 

I'm seriously considering buying an M2 MacBook, after over 20 years on Linux. My main concern is whether it will be difficult to set up Emacs after such a long-term investment in my init files. I would love to hear from others who have made the same transition -- was it hard? Do you have tips to make it easier?

Thanks in advance!

view more: ‹ prev next ›