nobiot / zero-to-emacs-and-org-roam Goto Github PK
View Code? Open in Web Editor NEWStep by step guide from zero to installing and setting up Emacs and Org-roam on Windows 10
License: Other
Step by step guide from zero to installing and setting up Emacs and Org-roam on Windows 10
License: Other
Hi, the link to the gif in Part 1.4 at the end of the "Set your font" section no longer exists (https://github.com/nobiot/Zero-to-Emacs-and-Org-roam/blob/main/images/2020-06-16_18-16-01.gif)
In your next-to-final step after restarting Emacs
Invoke org-roam-find-file by typing C-c n /, and then press TAB to let Emacs list the titles of your files...
I am not shown the contents of my roam directory, just a blank mini-buffer. But if I invoke org-roam-find-directory
I do get my roam directory where the two files new-file.org and second-file.org. I can chose these, and then, yes, org-roam seems to know about them, i.e., I invoke the backlink buffer and see that my two files created in the previous guide are noted.
Also, in this guide you don't establish a roam directory, i.e., (org-roam-directory "~/Dropbox/org/roam/")
This is my init based on what you say here and the main org-roam readme Installation section
(use-package org-roam
:ensure t
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "~/Dropbox/org/roam/")
:bind (:map org-roam-mode-map
(("C-c n l" . org-roam)
("C-c n f" . org-roam-find-file)
("C-c n g" . org-roam-graph))
:map org-mode-map
(("C-c n i" . org-roam-insert))
(("C-c n I" . org-roam-insert-immediate))))
(global-set-key (kbd "C-c n r") #'org-roam-buffer-toggle-display)
(global-set-key (kbd "C-c n b") #'org-roam-switch-to-buffer)
(global-set-key (kbd "C-c n d") #'org-roam-find-directory)
(global-set-key (kbd "C-c n c") #'org-roam-db-build-cache)
(require 'company-org-roam)
(push 'company-org-roam company-backends)
Disclaimer: I didn't start this guide with emacs -Q
, rather, my existing Emacs/org-mode config.
I've also been using a similar process for inserting clipboard images into org files, and this is where I found it.
https://www.sastibe.de/2018/11/take-screenshots-straight-into-org-files-in-emacs-on-win10/
Might have been the same place you also came across it.
(Hope this isn't rude or anything. This is the first github issue I have raised.)
Swapping caps and control can be done with the keyboard manager from the official Microsoft project PowerToys. Included is the KeyboardManager which allows the mapping of CapsLock to Control (among other things). It includes other utilities, but all are disabled by default. I personally use it specifically for this reason.
It seems you can use chocolatey
to install hunspell easily.
PS C:\Windows\system32> choco search hunspell
Chocolatey v0.10.15
hunspell.portable 1.7.0 [Approved] Downloads cached for licensed users
1 packages found.
PS C:\Windows\system32> choco install hunspell.portable
Chocolatey v0.10.15
Installing the following packages:
hunspell.portable
By installing you accept licenses for the packages.
Progress: Downloading hunspell.portable 1.7.0... 100%
hunspell.portable v1.7.0 [Approved]
hunspell.portable package files install completed. Performing other installation steps.
The package hunspell.portable wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y
Downloading hunspell.portable
from 'https://github.com/mlt/hunspell/releases/download/appveyor_v1.7.0/hunspell-msvc-Release-x64.zip'
Progress: 100% - Completed download of C:\Users\rnwol\AppData\Local\Temp\chocolatey\hunspell.portable\1.7.0\hunspell-msvc-Release-x64.zip (4.33 MB).
Download of hunspell-msvc-Release-x64.zip (4.33 MB) completed.
Extracting C:\Users\rnwol\AppData\Local\Temp\chocolatey\hunspell.portable\1.7.0\hunspell-msvc-Release-x64.zip to C:\ProgramData\chocolatey\lib\hunspell.portable\tools...
C:\ProgramData\chocolatey\lib\hunspell.portable\tools
ShimGen has successfully created a shim for hunspell.exe
ShimGen has successfully created a shim for testparser.exe
The install of hunspell.portable was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\hunspell.portable\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
This will add hunspell.exe to the path.
PS C:\Windows\system32> C:\ProgramData\chocolatey\bin\hunspell.exe --version
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.7.0)
Copyright (C) 2002-2014 László Németh. License: MPL/GPL/LGPL.
Based on OpenOffice.org's Myspell library.
Myspell's copyright (C) Kevin Hendricks, 2001-2002, License: BSD.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
Under the heading:
https://github.com/nobiot/Zero-to-Emacs-and-Org-roam/blob/main/30.Set-up-Org-roam.md#install-sqlite
Below the second image.
The second list item:
Set a variable within Emacs
is a link to:
https://org-roam.github.io/org-roam/manual/Post_002dInstallation-Tasks
Clicking on the link, opens a page that says:
404
File not found
Runing Msys2 version of Emacs 26.3 Org version 9.19, and Firefox 79.0, clicking on the org-roam graph will throw up a blank file.
The patch for Chrome (https://github.com/nobiot/Zero-to-Emacs-and-Org-roam/blob/main/90.org-protocol.md#chrome-only-patch-org-mode-for-org-protocol-and-org-roam-protocol) can solve this issue.
In the section Set-up Org-roam, there is this line:
Now you can save this. Let's quit Emacs and relaunch it. Once you see the start screen, invoke M-h e to view "echo message." Do you notice the two files and one link you created earlier have been added to Org-roam's database?
By default, M-h is bound to mark-paragraph, so "M-h e" just types 'e' into the active buffer.
Another custom configuration I've missed, perhaps?
Hello!
I tried to follow the instructions to install org-roam on Windows. I started with a clean Emacs installation, added Melpa, org, and org-roam. Downloaded the sqlite executables and verified they run from the command line.
When Emacs starts, I get Symbol's function definition is void: org-roam-mode
.
I uninstalled and then re-installed -- messages show:
Could not find C compiler, skipping SQLite build
Org-roam initialization: (error "No EmacSQL SQLite binary available, aborting")
Operation [ Install 1 ] finished
The docs suggest that this step isn't necessary if I make the sqlite executables available (by adding it to exec-path
).
So I'm not sure if I'm doing something wrong -- I tried specifying the path as c:/dev/bin
, which is a directory that contains sqlite3.exe, etc., but also with the slashes the other way, and suffixed with a slash.
Thanks so much!
Roam is a very promising tool and I have followed the instructions to set up org roam on Windows. However, it still doesn't work. When I "C-c n l" to open a new org file, it just says "No EmacSQL SQLite binary available, aborting".
I did install gcc through msys64 and install sqlite3 and put them in the path. Any insights will be helpful if I should go to modify the roam .el file.
Zero-to-Emacs-and-Org-roam/30.setup-org-roam.md
Lines 5 to 20 in 3dce488
In Windows 11, at least, the following worked for me (and feels a little less involved than MSYS2). From admin CMD prompt:
winget install LLVM.LLVM
set PATH=%PATH%;%PROGRAMFILES%\LLVM\bin
where clang
to verify clang
is availableemacs
from this prompt and proceed to "Install Org-roam in Emacs" phase -- emacsql-sqlite
should compile fine...A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.