emacs

How to automatically enable paredit mode on all clojure, closurescript and elisp buffers automatically?

江枫思渺然 提交于 2021-02-11 14:14:02
问题 I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function of my .spacemacs: ;; paredit autoload (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) (add-hook 'clojure-mode #'enable-paredit-mode) (add-hook 'clojurescript-mode #'enable-paredit-mode) But it doesn't really work. What am I doing wrong? 回答1: In the

自由软件基金会庆祝成立35周年

心已入冬 提交于 2021-02-11 13:28:50
美国东部时间 10 月 4 日,自由软件基金会(Free Software Foundation,FSF)在官网 发文庆祝 ”其为争取软件自由而奋斗的第 35 年“。 1985 年 10 月,自由软件运动的主要发起人 RMS(Richard Matthew Stallman)创办了这一非营利性组织,旨在推广自由软件及其理念。35 年后的今天,FSF 现任主席 Greg Farough 称他们的使命仍在继续,”直到每位计算机用户都能完全自由地践行所有数字任务后,我们的工作才算完成……自由软件的斗争仍在继续,没有你们,我们就不会在这里。“ FSF 计划用整整一周时间来做庆祝。其中,美国东部时间 10 月 9 日 12:00 至 17:00 将举行在线周年纪念活动,包括现场直播和预先录制的视频。因此,他们号召用户上传两分钟以内的简短视频,分享对自由软件或 FSF 的记忆片段,以及对软件自由的未来期盼。 除此之外,该基金会还提供了一些可行的庆祝方式,提议大家参与其中,包括但不限于: 为 FSF 捐款 35 美元; 尝试完全自由的 GNU/Linux 发行版; 下载并尝试使用 GNU 操作系统最古老的部分之一,即 GNU Emacs 文本编辑器; 用自由的程序替换一个非自由程序,例如使用 LibreOffice 而不是 Microsoft Office;

Use mit-scheme with REPL and editor together

拈花ヽ惹草 提交于 2021-02-10 20:12:10
问题 I'm going through SICP course and as recommended installed mit-scheme. I want to use the REPL together with a scheme file. The reason is because I can add scheme code in the file and then run the commands in REPL. What I have works, but the problem is every time I edit the file, I have to quit terminal and reload the file for REPL to see changes. Is there a way to reload the file easily or some other way for REPL to see changes from the file? This my setup: I installed mit-scheme with brew

error in process sentinel: Could not start nREPL server: java.lang.NumberFormatException: Invalid number

十年热恋 提交于 2021-02-10 18:18:00
问题 I've looked at all of the similar questions on stack overflow. This one is different enough to warrant a separate question. Basically, I can't start a repl server because I get the error below. It's been pointed out that this is typically a dependency issue, but I'm updated, to my knowledge. What am I getting wrong here? Here's the full error: error in process sentinel: Could not start nREPL server: java.lang.NumberFormatException: Invalid number: 0.8.3 at clojure.lang.LispReader.readNumber

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

which-function-mode cannot work with official CEDET 2.0

扶醉桌前 提交于 2021-02-10 06:55:59
问题 I have installed official CEDET 2.0 using el-get on GNU Emacs 24.3 and configured it. Although it works great for code jump and completion, it cannot work properly with Emacs built-in which-function-mode. When the major modes is Java mode, the Emacs mode line simply displays [???], like no valid function is recognized. But when I removed my CEDET configuration, which-function-mode works well. So I think the problem should be related to the official CEDET 2.0. I tried to manually enable which

Emacs and. sh (or. bash)?

﹥>﹥吖頭↗ 提交于 2021-02-10 06:19:32
问题 I've tried finding an Emacs specific answer to this one, so apologies if it is repetitive. Simple question. I know that from the point of view of the interpreter it doesn't matter if you write a bash script with or without the .sh or. bash suffix, but does using one of either of these change the way in which Emacs treats the file when editing it? I've been playing around with some bash scripts in Emacs, and I've half answered my question. But I'm brand new to bash, so a lot is still unclear.

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