elisp

Adding binary path to emacs $PATH

邮差的信 提交于 2021-02-10 17:28:48
问题 I tried the following: (setenv "PATH" (concat (getenv "PATH") ":~/mybin")) (setq exec-path (append exec-path '(":~/mybin"))) But that never worked. I tried M-! and typing one of the binary names and that gave "unknown command" also when doing M-x compile with the binary name same result. M-x compile then echo $PATH gave the path without my ~/mybin folder in it. I am on solaris. What am I doing wrong? 回答1: : is not needed for exec-path. exec-path is list of directory paths. And you should use

Adding binary path to emacs $PATH

青春壹個敷衍的年華 提交于 2021-02-10 17:27:58
问题 I tried the following: (setenv "PATH" (concat (getenv "PATH") ":~/mybin")) (setq exec-path (append exec-path '(":~/mybin"))) But that never worked. I tried M-! and typing one of the binary names and that gave "unknown command" also when doing M-x compile with the binary name same result. M-x compile then echo $PATH gave the path without my ~/mybin folder in it. I am on solaris. What am I doing wrong? 回答1: : is not needed for exec-path. exec-path is list of directory paths. And you should use

Does emacs offer hide show for html mode

时光总嘲笑我的痴心妄想 提交于 2021-02-10 05:12:30
问题 Does emacs have a hide-show code fold-ability for html? I have it when I'm using org mode, but can't seem to find it on the nXML/html side. 回答1: I wrote this for mhtml-mode and it works pretty well, it can fold HTML by tag as well as the embedded CSS and JS. Simply add it to your emacs config file and you'll be set to go. ;; When called this automatically detects the submode at the current location. ;; It will then either forward to end of tag(HTML) or end of code block(JS/CSS). ;; This will

Does emacs offer hide show for html mode

北战南征 提交于 2021-02-10 05:09:18
问题 Does emacs have a hide-show code fold-ability for html? I have it when I'm using org mode, but can't seem to find it on the nXML/html side. 回答1: I wrote this for mhtml-mode and it works pretty well, it can fold HTML by tag as well as the embedded CSS and JS. Simply add it to your emacs config file and you'll be set to go. ;; When called this automatically detects the submode at the current location. ;; It will then either forward to end of tag(HTML) or end of code block(JS/CSS). ;; This will

Does emacs offer hide show for html mode

烂漫一生 提交于 2021-02-10 05:04:43
问题 Does emacs have a hide-show code fold-ability for html? I have it when I'm using org mode, but can't seem to find it on the nXML/html side. 回答1: I wrote this for mhtml-mode and it works pretty well, it can fold HTML by tag as well as the embedded CSS and JS. Simply add it to your emacs config file and you'll be set to go. ;; When called this automatically detects the submode at the current location. ;; It will then either forward to end of tag(HTML) or end of code block(JS/CSS). ;; This will

Complex/imaginary numbers in elisp?

不羁岁月 提交于 2021-02-08 04:08:37
问题 Does elisp support imaginary numbers is any way? I'm trying to follow an online math course with lisp interaction mode buffer running. Are there "higher math" modules/libraries for Emacs elisp? 回答1: Emacs includes calc , a comprehensive calculator which supports complex numbers. The manual is here: C-h i g (calc) RET Other nodes of particular note are: (calc) Complex Numbers (calc) Complex Number Functions (calc) Calling Calc from Your Programs 回答2: I just found a nice example of calling Calc

Banish unmatched top-level trees when performing tag search in Emacs Org Mode

守給你的承諾、 提交于 2021-02-07 19:17:10
问题 For the past year and a half, I've maintained a monolithic buffer in Org Mode for my engineering notes with my current employer. Despite containing mostly pointers to other documents, this file has become quite large by human standards (48,290 lines of text), while remaining trivially searchable and editable through programmatic means (read: grep and Org Mode tag search). One thing bothers me, though. When I perform a tag search using Org Mode 6.33x, Org's sparse tree view retains the folded

Banish unmatched top-level trees when performing tag search in Emacs Org Mode

五迷三道 提交于 2021-02-07 19:16:58
问题 For the past year and a half, I've maintained a monolithic buffer in Org Mode for my engineering notes with my current employer. Despite containing mostly pointers to other documents, this file has become quite large by human standards (48,290 lines of text), while remaining trivially searchable and editable through programmatic means (read: grep and Org Mode tag search). One thing bothers me, though. When I perform a tag search using Org Mode 6.33x, Org's sparse tree view retains the folded

Why sharp quote lambda expressions?

巧了我就是萌 提交于 2021-02-06 09:58:55
问题 It is a technique used frequently in On Lisp , which is on Common Lisp: > (mapcar #'(lambda (x) (+ x 10)) '(1 2 3)) (11 12 13) Why is sharp-quote needed or even possible? lambda expressions return function objects, and sharp quoting returns function objects from names. I also have heard contradictory information on whether lambda expressions are names - in particular On Lisp contradicts the standard, but his code seems to work which also contradicts the standard. In elisp it seems it's not

Why sharp quote lambda expressions?

不打扰是莪最后的温柔 提交于 2021-02-06 09:58:25
问题 It is a technique used frequently in On Lisp , which is on Common Lisp: > (mapcar #'(lambda (x) (+ x 10)) '(1 2 3)) (11 12 13) Why is sharp-quote needed or even possible? lambda expressions return function objects, and sharp quoting returns function objects from names. I also have heard contradictory information on whether lambda expressions are names - in particular On Lisp contradicts the standard, but his code seems to work which also contradicts the standard. In elisp it seems it's not