Doom Emacs anybody?

I have just reinstalled Doom Emacs after upgrading to the latest Emacs and have problems making anything work (not that I ever managed to get familiar with the system).

I get 'SPC .' is undefined. whereas many documents suggest that this should work.

Anyone else using it and gettng frustrated.
 
I'm using Doom Emacs. I updated everything rightnow, and I have no problems, except this long-standing problem: I had to disable "company-mode" because it is pausing too much.

With emacs ---debug-init you can inspect the point where eventually the initialization stop with an error. If the initialization is not complete, Doom Emacs can work, but with missing functionalities. Maybe, this is your case.

These are the packages I installed for Doom Emacs under wayland, and with org-roam support.

Code:
pkg install emacs sqlite3 ripgrep fd direnv
pkg install clipman wl-clipboard # copy and paste for doom emacs
pkg install coreutils # gls
pkg install scrot
pkg install nerd-fonts # required by doom emacs
pkg install aspell aspell-ispell en-aspell

This is my ~/.config/doom/justfile

Code:
default:
        just -l

sync:
    ../emacs/bin/doom sync
    ../emacs/bin/doom env
    ../emacs/bin/doom doctor

upgrade:
    ../emacs/bin/doom upgrade
    just sync

clean:
    ../emacs/bin/doom build

Every time I update the Emacs package, I had to execute just sync because Doom packages must be recompiled with the new version of Emacs. Maybe you can try to clean the precompiled packages, for forcing a recompilation.
 
I am starting again from scratch on a new installation of FreeBSD 14.3.

I have just installed the latest emacs, although I surprised it created a ~/.emacs.d albeit empty rather than a ~/.config/emacs.

Then I followed the instructions at https://github.com/doomemacs/doomemacs?tab=readme-ov-file#install

At the moment I don't even get Doom starting, just emacs when I run 'emacs'.

I have messed around previously on a different system to get Doom to start, but I'm trying to just follow the guidelines provided.

Looks like I've overlooked a vital step.
 
These are the packages I installed for Doom Emacs under wayland, and with org-roam support.

Code:
pkg install emacs sqlite3 ripgrep fd direnv
pkg install clipman wl-clipboard # copy and paste for doom emacs
pkg install coreutils # gls
pkg install scrot
pkg install nerd-fonts # required by doom emacs
pkg install aspell aspell-ispell en-aspell

How does the pasting into doom emacs work?
I just installed those two packages, clipman and wl-clipboard... oh wayland, I am using X11 so I guess these won't work?
It's driving me nuts - I use the mouse to copy some text from a webpage I want to paste into an Emacs org-mode buffer and nothing seems to work.
But now maybe the X11 is the way to find out - X11 doom emacs paste? The search continues.
 
This is what i use

Code:
;; ----------------------------------------------------------------------------------
;; wayland clipboard
;; ----------------------------------------------------------------------------------

(setq wl-copy-process nil)
(defun wl-copy (text)
  (setq wl-copy-process (make-process :name "wl-copy"
                                      :buffer nil
                                      :command '("wl-copy" "-f" "-n")
                                      :connection-type 'pipe
                                      :noquery t))
  (process-send-string wl-copy-process text)
  (process-send-eof wl-copy-process))
(defun wl-paste ()
  (if (and wl-copy-process (process-live-p wl-copy-process))
      nil ; should return nil if we're the current paste owner
    (shell-command-to-string "wl-paste -n")))
(setq interprogram-cut-function 'wl-copy)
(setq interprogram-paste-function 'wl-paste)
 
This is what i use

Code:
;; ----------------------------------------------------------------------------------
;; wayland clipboard
;; ----------------------------------------------------------------------------------

(setq wl-copy-process nil)
(defun wl-copy (text)
  (setq wl-copy-process (make-process :name "wl-copy"
                                      :buffer nil
                                      :command '("wl-copy" "-f" "-n")
                                      :connection-type 'pipe
                                      :noquery t))
  (process-send-string wl-copy-process text)
  (process-send-eof wl-copy-process))
(defun wl-paste ()
  (if (and wl-copy-process (process-live-p wl-copy-process))
      nil ; should return nil if we're the current paste owner
    (shell-command-to-string "wl-paste -n")))
(setq interprogram-cut-function 'wl-copy)
(setq interprogram-paste-function 'wl-paste)
Thanks for this. I see it says Wayland, so my question is does this work if using X11 instead of Wayland?

By the way I liked your great youtube video on converting speech to text in Emacs with a local LLM!
As my typing is so atrocious I can see myself using this to write a lot of text for research, blogs and/or books etc in future. :cool:
 
I see it says Wayland, so my question is does this work if using X11 instead of Wayland?

Try this for x11
you need xclip installed which i think is the x11 equivalent of wl-copy and wl-paste

Code:
;; ----------------------------------------------------------------------------------
;; X11 clipboard
;; ----------------------------------------------------------------------------------

(setq xclip-copy-process nil)
(defun xclip-copy (text)
  (setq xclip-copy-process (make-process :name "xclip-copy"
                                         :buffer nil
                                         :command '("xclip" "-selection" "clipboard")
                                          :connection-type 'pipe
                                          :noquery t))
  (process-send-string xclip-copy-process text)
  (process-send-eof xclip-copy-process))

(defun xclip-paste ()
  (if (and xclip-copy-process (process-live-p xclip-copy-process))
      nil ; should return nil if we're the current paste owner
    (shell-command-to-string "xclip -o -selection clipboard")))

(setq interprogram-cut-function 'xclip-copy)
(setq interprogram-paste-function 'xclip-paste)

By the way I liked your great youtube video on converting speech to text in Emacs with a local LLM!

Cheers mate
whisper-cpp is really fast and accurate for speech to text
 
Try this for x11
you need xclip installed which i think is the x11 equivalent of wl-copy and wl-paste

Code:
;; ----------------------------------------------------------------------------------
;; X11 clipboard
;; ----------------------------------------------------------------------------------

(setq xclip-copy-process nil)
(defun xclip-copy (text)
  (setq xclip-copy-process (make-process :name "xclip-copy"
                                         :buffer nil
                                         :command '("xclip" "-selection" "clipboard")
                                          :connection-type 'pipe
                                          :noquery t))
  (process-send-string xclip-copy-process text)
  (process-send-eof xclip-copy-process))

(defun xclip-paste ()
  (if (and xclip-copy-process (process-live-p xclip-copy-process))
      nil ; should return nil if we're the current paste owner
    (shell-command-to-string "xclip -o -selection clipboard")))

(setq interprogram-cut-function 'xclip-copy)
(setq interprogram-paste-function 'xclip-paste)

Thank you so much, I will give it a try.

Cheers mate
whisper-cpp is really fast and accurate for speech to text

Yes, it didn't seem to take long in your vid. Looking forward to trying it once I get myself a desktop microphone - any recommendations?
 
once I get myself a desktop microphone - any recommendations?

i got a yeti blue snowball years ago and it does the job


but i dont know if its still on sale on amazon


it says there is a newer model which is about 40 dollars
you might need to do a little research and see what mic are popular these days, maybe on youtube or reddit

 
Try this for x11
you need xclip installed which i think is the x11 equivalent of wl-copy and wl-paste

Code:
;; ----------------------------------------------------------------------------------
;; X11 clipboard
;; ----------------------------------------------------------------------------------

(setq xclip-copy-process nil)
(defun xclip-copy (text)
  (setq xclip-copy-process (make-process :name "xclip-copy"
                                         :buffer nil
                                         :command '("xclip" "-selection" "clipboard")
                                          :connection-type 'pipe
                                          :noquery t))
  (process-send-string xclip-copy-process text)
  (process-send-eof xclip-copy-process))

(defun xclip-paste ()
  (if (and xclip-copy-process (process-live-p xclip-copy-process))
      nil ; should return nil if we're the current paste owner
    (shell-command-to-string "xclip -o -selection clipboard")))

(setq interprogram-cut-function 'xclip-copy)
(setq interprogram-paste-function 'xclip-paste)



Cheers mate
whisper-cpp is really fast and accurate for speech to text

I installed xclip plus xclipboard & xclipsync packages.

Then copied your text into ~/.config/doom/config.el
Then ran ~/.config/emacs/bin/doom sync
Then relaunched emacs.
Then tested it out by dragging over some text in a web page, hitting CTRL-C, switching to the doom emacs scratch buffer and hit 'p' (in non insert mode) and voila, it worked.

Just spelling it out for people unfamiliar with emacs in case it helps.

Thanks again so much!
 
i got a yeti blue snowball years ago and it does the job


but i dont know if its still on sale on amazon


it says there is a newer model which is about 40 dollars
you might need to do a little research and see what mic are popular these days, maybe on youtube or reddit

Thanks will take a look at these.

Could there be any FreeBSD driver issue with getting a random 3.5mm jack / USB microphone or are they all handled the same?
 
there is the emacs site



the following people are worth following

prot




sachua chua





system crafters





mike zamansky




Rainer König

 
Thanks a million for these links, much appreciated.

One last thing, do you use org-roam in emacs? If so, what do you think of it?
I have found it so useful to document stuff, ranging from research into all kinds of subject areas - the power of org-mode plus the database used to link files is great. And org-roam-ui to visualise all the associative file links!
 
i have never got into org roam

here are all my tech notes,
if i know anything it will be in there


you may find it useful to clone the repo and then use rg with emacs to search through it
OK, it's basically just org-mode files but linked together - each .org file is called a node and to create a link between two files/nodes you use C-c n i (node insert). You then have forward and backward node traversal capabilities - made possible due to the database being automatically updated when you save a file/node (org-roam-db-autosync-mode).
Org-roam-ui melpa package then provides an animated colour visual representation of the nodes in a 2D or 3D graphical view via the browser - which is sensitive to the mouse moving over the nodes. A marvel for a researcher wanting to get a handle on vast amounts of interrelated data in a visual way. You have the possibility of one to one, one to many, or many to one style associations between nodes.
Org-roam is a digital 'zettelkasten' (paper card / 'slip' box) - the kind of index cards that Kent Beck of Smalltalk fame used to advocate for simple and effective software design.

I will clone your repo and take a look through it, thanks!
 
Back
Top