没有 Lisp 的 Emacs

发布于 2024-08-27 09:55:57 字数 1431 浏览 4 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

別甾虛僞 2024-09-03 09:55:58

您无需学习 Lisp 即可使用 Emacs。即使没有 Lisp 知识,Emacs 的基本定制也能正常工作。如果您需要超出您能力范围的东西,有许多有用的 Emacs 用户。

学习一点 Emacs Lisp 稍后将增强您对 Emacs 的理解。

Emacs Lisp 是一种相对简单的 Lisp 方言。基础 Emacs Lisp 并不难学。作为一名经验丰富的 Lisp 用户,我不得不说 Emacs 已经使用了一段时间,并且用户在 Emacs 中编写了一些令人惊奇的东西(例如 组织模式)。一些 Emacs 扩展写得非常非常好,阅读代码是一种乐趣。

You don't need to learn Lisp to use Emacs. Even basic customization of Emacs works fine without Lisp knowledge. If you need something beyond your capabilities, there are many helpful Emacs users.

Learning a bit Emacs Lisp will later enhance your understanding of Emacs.

Emacs Lisp is a relatively simple Lisp dialect. Basic Emacs Lisp is not that difficult to learn. As an experienced Lisp user I have to say that Emacs is available quite some time and the users have written some amazing things in Emacs (like Org-mode). Some of the Emacs extensions are very very well written and it is a pleasure to read the code.

故事灯 2024-09-03 09:55:58

好吧,如果您不想定制您的 Emacs,那么您也不需要 Lisp。您还可以使用内置的自定义功能以及复制粘贴其他人的代码来进行一些基本修改。但事实是:我已经编写了数百行代码来自定义 Emacs 以满足我的需求。另一方面,据我所知,vi 不像 Emacs 那样可定制,所以最终可能更多的是你更喜欢哪种编辑器,你应该两种都尝试一下。

Well, if you don't want to customize your Emacs, you won't need Lisp, either. And you can also do some basic modifications using the build-in customize functionality and by copy&pasting code of others. But truth being: I have written several hundreds of lines of code to customize Emacs to suit my needs. On the other side, as far as I know, vi is not as customizable as Emacs, so in the end it is probably more about what editor you like more and you should try both.

鸵鸟症 2024-09-03 09:55:58

我对 Lisp 知之甚少,并使用 Emacs 在 Windows 和 Linux 上编辑我的 C 和 OCaml 程序。

I know little Lisp and use Emacs to edit my C and OCaml programs on Windows and Linux.

纵山崖 2024-09-03 09:55:58

我已经使用 Emacs 一年半了,而且实际上只接受了 Emacs Lisp 带来的任何东西,而没有尝试。我有一组大量扩展的配置(首先在 .emacs 文件中,现在在 ~/.emacs.d/init.el 和朋友中),它们完全是从网上找到的优秀资源剪切和粘贴的结果。

当然,除了 EmacsWiki 之外,您还应该看到不错的 Emacs 入门套件 并订阅 Planet Emacsen --- 最好在提要阅读器中。更漂亮了。

话虽如此,在您完成工作设置后,您可能会忍不住学习一点 Emacs Lisp。我刚刚开始免费Emacs Lisp 编程简介< /a>,它随 Emacs 一起提供,最好从 Emacs Info 中阅读。它既不需要编程能力,也不需要 Lisp 知识,而是对 Emacs Lisp 的“氛围”的友好介绍,我发现它写得非常好,友好且简洁,我花在它身上的每一分钟都值得 10 倍。

I've been using Emacs for a year and a half, and really only picked up whatever Emacs Lisp came without trying. I have a heavily extended set of configurations (first in a .emacs file, and now in ~/.emacs.d/init.el and friends), which are totally a result of cutting and pasting from the excellent resources found online.

Aside from, of course, the EmacsWiki, you should see the fine Emacs Starters Kit and subscribe to Planet Emacsen --- preferably in a feed reader. It's prettier.

Having said that, after you have a working setup you might yield to the temptation to learn a little Emacs Lisp. I've just started the free Introduction to Programming In Emacs Lisp, which comes with Emacs and is best read from within Emacs Info. It assumes neither programming ability nor Lisp knowledge, and is a friendly introduction to the 'vibe' of Emacs Lisp which I find to be well-written in the extreme, friendly and concise, and worth 10x every minute I have spent with it.

度的依靠╰つ 2024-09-03 09:55:57

是的。有了所有资源(常见问题解答Emacs wikiStack Exchange Emacs站点)和自定义(Mx 自定义)。你不需要了解 Lisp。您只需剪切/粘贴您找到的内容即可。

您可以在不了解内燃机内部结构或一级方程式赛车的情况下驾驶法拉利/Yugo输电工程...

Yes. With all the resources out there (FAQ, Emacs wiki, and the Stack Exchange Emacs site) and custom (M-x custom). You don't need to know Lisp. You just cut/paste what you find.

You can drive a Ferrari/Yugo without knowing the internals of the combustion engine or how a Formula One transmission works...

(り薆情海 2024-09-03 09:55:57

为什么不呢?

你仍然可以学习 vi(可能是 Vim 或 Elvis< /a>)。
您可以学习
jEdit。或者 nano 和 Pico。或者您喜欢的任何其他编辑器、环境和语言主机。

为什么要对事物施加如此武断的限制?如果您至少学习基本的 Emacs Lisp<,您的 Emacs 体验将会更好/a> (一个 .. 废弃的 .. Lisp 实现),它不是必需的。但归根结底,它只是一个工具。尽可能多地获取有用的工具。 “有用”也确实取决于上下文。

Why not?

You can still learn vi (probably Vim or Elvis).
You can learn jEdit. Or nano and Pico. Or whatever other editor, environment, and language-host you fancy.

Why put such an arbitrary restriction on things? While your Emacs experience will be better if you learn at least basic Emacs Lisp (a .. derelict .. Lisp implementation), it's not required. But at the end of the day, it's a tool. Get as many useful tools as you can. "Useful" also really depends on context.

-柠檬树下少年和吉他 2024-09-03 09:55:57

我已经使用 Emacs 好几年了,但对 Lisp 几乎一无所知,它对我使用它完成的所有项目都有很好的帮助。

你总是可以简单地假设你正在编写的配置不是在 Emacs Lisp 中,它只是一些有趣的配置格式 - 有很多奇怪的例子(例如 Sendmail)。

不过,我应该警告您,一旦我开始学习 Emacs Lisp,我对 Emacs 的掌握就迅速扩展 - 现在我了解了该语言的细节,我可以轻松地根据我的需要调整任何配置,更重要的是,我开始编写自己的 Emacs 扩展,这添加更多功能。

如果您决定开始使用 Emacs,我建议您首先阅读这本很棒的书 - 一开始它教会了我很多关于 Emacs 的东西,并且它假设我没有 Lisp 知识。它也不会教你任何 Lisp。之后我的建议是阅读官方 Emacs 手册并开始探索 Emacs Wiki 和 #emacs on Freenode

学习 Emacs 确实是一个不适合胆小的人的旅程,但这是一个绝对值得的旅程......

I have used Emacs for several years with next to no knowledge of Lisp and it served me well for all of the projects I used it for.

You can always simply assume that the configuration you're writing is not in Emacs Lisp and that it is just some funny configuration format - there a lot stranger examples out there (such as Sendmail).

I should warn you though that once I started learning Emacs Lisp my Emacs mastery expanded extremely rapidly - now that I understand the details of the language I can easily bend any configuration to my needs and more importantly I started writing my own extension to Emacs, which add to it even more capabilities.

If you decided to start with Emacs, I recommend to read first this great book - it taught me a lot of things for Emacs at the beginning and it assumes no Lisp knowledge. It won't teach you any Lisp either. Afterwards my advice would be read the official Emacs manual and start exploring the Emacs Wiki and #emacs on Freenode.

Learning Emacs truly is a journey that is not for the faint of heart, but it is journey that is most certainly worth it...

稚然 2024-09-03 09:55:57

配置 Emacs 是一个旅程,并且是您想要做的事情。能够定制您的开发环境是 Emacs 的最大优势之一。这几乎是不可避免的。您只需查看其他人的 .emacs 文件即可了解一些零碎的内容。

了解一点点 Lisp 就可以在 Emacs 中大有帮助。

Configuring Emacs is a journey, and it's something that you're going to want to do. Being able to customize your developing environment is one of Emacs' greatest strengths. It's almost unavoidable. You pick up bits and pieces just by looking at other people's .emacs files.

Knowing just a little bit of Lisp goes a long way in Emacs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文