Comments (8)
This is in keys.el
file.
from oremacs.
Calling it after manually calling whitespace-mode
does not give error.
from oremacs.
Can't reproduce.
from oremacs.
I'm not using the config verbatim, so not surprised if it works for you.
If something jumps to your mind as to the reason, I appreciate your sharing.
Trace.
Debugger entered--Lisp error: (void-variable whitespace-mode)
(format "%s abbrev-mode: %S\n%s debug-on-error: %S\n%s auto-fill-mode: %S\n%s highlight %S\n%s truncate-lines: %S\n%s whitespace-mode: %S\n%s org link display: %S\n" #("a" 0 1 (face hydra-face-pink)) abbrev-mode #("d" 0 1 (face hydra-face-pink)) debug-on-error #("f" 0 1 (face hydra-face-pink)) auto-fill-function #("h" 0 1 (face hydra-face-pink)) highlight-nonselected-windows #("t" 0 1 (face hydra-face-pink)) truncate-lines #("w" 0 1 (face hydra-face-pink)) whitespace-mode #("l" 0 1 (face hydra-face-pink)) org-descriptive-links)
(concat (format "%s abbrev-mode: %S\n%s debug-on-error: %S\n%s auto-fill-mode: %S\n%s highlight %S\n%s truncate-lines: %S\n%s whitespace-mode: %S\n%s org link display: %S\n" #("a" 0 1 (face hydra-face-pink)) abbrev-mode #("d" 0 1 (face hydra-face-pink)) debug-on-error #("f" 0 1 (face hydra-face-pink)) auto-fill-function #("h" 0 1 (face hydra-face-pink)) highlight-nonselected-windows #("t" 0 1 (face hydra-face-pink)) truncate-lines #("w" 0 1 (face hydra-face-pink)) whitespace-mode #("l" 0 1 (face hydra-face-pink)) org-descriptive-links) #("[q]: quit." 1 2 (face hydra-face-blue)))
eval((concat (format "%s abbrev-mode: %S\n%s debug-on-error: %S\n%s auto-fill-mode: %S\n%s highlight %S\n%s truncate-lines: %S\n%s whitespace-mode: %S\n%s org link display: %S\n" #("a" 0 1 (face hydra-face-pink)) abbrev-mode #("d" 0 1 (face hydra-face-pink)) debug-on-error #("f" 0 1 (face hydra-face-pink)) auto-fill-function #("h" 0 1 (face hydra-face-pink)) highlight-nonselected-windows #("t" 0 1 (face hydra-face-pink)) truncate-lines #("w" 0 1 (face hydra-face-pink)) whitespace-mode #("l" 0 1 (face hydra-face-pink)) org-descriptive-links) #("[q]: quit." 1 2 (face hydra-face-blue))))
hydra-show-hint((concat (format "%s abbrev-mode: %S\n%s debug-on-error: %S\n%s auto-fill-mode: %S\n%s highlight %S\n%s truncate-lines: %S\n%s whitespace-mode: %S\n%s org link display: %S\n" #("a" 0 1 (face hydra-face-pink)) abbrev-mode #("d" 0 1 (face hydra-face-pink)) debug-on-error #("f" 0 1 (face hydra-face-pink)) auto-fill-function #("h" 0 1 (face hydra-face-pink)) highlight-nonselected-windows #("t" 0 1 (face hydra-face-pink)) truncate-lines #("w" 0 1 (face hydra-face-pink)) whitespace-mode #("l" 0 1 (face hydra-face-pink)) org-descriptive-links) #("[q]: quit." 1 2 (face hydra-face-blue))) hydra-toggle)
hydra-toggle/body()
funcall-interactively(hydra-toggle/body)
call-interactively(hydra-toggle/body nil nil)
command-execute(hydra-toggle/body)
from oremacs.
whitespace-mode
is both a symbol and a function defined in whitespace.el
.
Possibly, only the function is autoloaded, resulting in the symbol being undefined.
In any case, a simple (require 'whitespace)
before defhydra
should fix it.
from oremacs.
Thanks. I try to follow your way of reducing the use of require
. I greped your repo for whitespace-mode
. You only define it in keys.el
.
I wonder why you don't see this error.
-- mode: ag; default-directory: "~/GitHub/abo-abo/oremacs/" --
Ag started at Tue Mar 28 19:24:20
ag --literal --nogroup --line-number --column --color --color-match 30;43 --color-path 1;32 --nogroup --skip-vcs-ignores --numbers --smart-case --follow --stats -- whitespace-mode .
keys.el:252:5:w whitespace-mode: %`whitespace-mode
keys.el:260:8: ("w" whitespace-mode)
3 matches
1 files contained matches
172 files searched
271739 bytes searched
0.012638 seconds
Ag finished at Tue Mar 28 19:24:20
from oremacs.
Thanks. I try to follow your way of reducing the use of require.
I was actually suggesting to increase it. Your error happens because the whitespace-mode
symbol isn't defined.
If you use (require 'whitespace)
, the symbol will become defined. Just use it before defhydra
, not after.
from oremacs.
I was actually suggesting to increase it
I meant the overall philosophy of this config - autoload/hook stuff to reduce load time.
Thanks for your help. I'm still curious why you don't see this error in your config.
from oremacs.
Related Issues (20)
- FYI and thanks HOT 2
- wrap region in org-mode block
- I get some error HOT 4
- how to use keys.el HOT 2
- Package installation: 'packages.el' vs 'ensure' keyword from `use-package' HOT 2
- RE: csetq - what about customize-set-variable? HOT 4
- IRC in emacs HOT 4
- No definitions found for: mash-get HOT 1
- Start an interactive process from dired HOT 1
- consider swap C-d and C-b HOT 1
- HI some problem with your generate autoload function HOT 1
- How to fold based on ;;* syntax HOT 2
- Failure during make install HOT 5
- Question about organization of your files HOT 2
- Wrong number of arguments: setq, 1 while doing ora-query-replace HOT 1
- A little improve of ora-company-number
- About the rebinding of SPC to close the company popup in ora-company.el.
- Some updates and fixes for using `ora-company.el` with the latest company version.
- Using digits and letters to select more company candidates by extending the `ora-company-number` function. HOT 1
- Install - No such file or directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oremacs.