In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to use Emacs to send email and check calendar". In daily operation, I believe many people have doubts about how to use Emacs to send email and check calendar. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to send email and check calendar with Emacs". Next, please follow the editor to study!
Configuring Emacs is a little more complicated than configuring Vim, but in my opinion, it's worth it in the long run. First let's create a configuration file and open it in Emacs:
Mkdir / .emacs.demacs ~ / .emacs.d/init.el
Next, add some additional package sources to the built-in package manager. Add the following to init.el:
(package-initialize) (add-to-list 'package-archives' ("melpa". (add-to-list 'package-archives' ("org"). ") T) (add-to-list 'package-archives' ("gnu". "") (package-refresh-contents)
Save the file using Ctrl+x Ctrl+s, then press Ctrl+x Ctrl+c to exit, and then restart Emacs. Emacs will download a list of all plug-in packages at startup, after which you can install plug-ins using the built-in package manager. Typing Meta+x will pop up a command prompt (the Meta key is the Alt key on most keyboards, while on MacOS it is Option). Typing package-list-packages at the command prompt displays a list of packages that can be installed. Iterate through the list and use the I key to select the following package:
Bbdbbbdb-vcardcalfwcalfw-icalnotmuch
After selecting the packages, press x to install them. Depending on your network connection, this may take a while. You may see some compilation errors, but you can ignore them. After the installation is complete, use the key combination Ctrl+x Ctrl+f to open ~ / .emacs.d / init.el, and add the following line to the file after (package-refresh-packages) and before (custom-set-variables). The custom-set-variables line is maintained internally by Emacs, and you should never modify anything after it. The line that begins with; is a comment.
; Set up bbdb (require 'bbdb) (bbdb-initialize' message) (bbdb-insinuate-message) (add-hook 'message-setup-hook' bbdb-insinuate-mail); setup calendar (require 'calfw) (require' calfw-ical); Set this to the URL of your calendar. Google users will use;; the Secret Address in iCalendar Format from the calendar settings (cfw:open-ical-calendar ""); Set up notmuch (require 'notmuch);; set up mail sending using sendmail (setq send-mail-function (quote sendmail-send-it)) (setq user-mail-address "[myemail@mydomain.com] [9]" user-full-name "My Name")
Now you are ready to start Emacs with your own configuration! Save the init.el file (Ctrl+x Ctrl+s), exit Emacs (Ctrl+x Ctrl+c), and restart it. This restart will take more time.
Use Notmuch to read and write email in Emacs
Once you see the Emacs launch screen, you can use Notmuch to read email. Type Meta+x notmuch and you will see the Emacs interface of notmuch.
Use notmuch to read email
All bold items are links to e-mail views. You can access them by clicking the mouse or using the tab key to jump between them and press enter. You can use the search bar to search Notmuch's database, and the syntax is the same as on the Notmuch command line. If you prefer, you can also use the [save] button to save searches for future use, and these searches will be added to the list at the top of the screen. If you go to a link, you will see a list of related emails. You can use the arrow keys to navigate through the list and press enter on the message you want to read. Press r to reply to a message, f forwards the message, and Q exits the current screen.
You can write new messages by typing Meta+x compose-mail. Composing, replying, and forwarding all open the interface for writing emails. When you finish writing the email, press Ctrl+c Ctrl+c to send it. If you decide not to send it, press Ctrl+c Ctrl+k to close the message composer buffer (window).
Using BBDB to automatically complete the email address in Emacs
Use BBDB addresses in messages
What about the address book? This is where BBDB plays a role. But first we need to import all addresses from abook by opening the command line and running the following export command:
Abook-convert-outformat vcard-outfile ~ / all-my-addresses.vcf-infile ~ / .abook/addresses
After Emacs starts, run Meta+x bbdb-vcard-import-file. It will prompt you to enter the file name to import, that is, ~ / all-my-address.vcf. After the import is complete, when you write the message, you can start entering a name and use Tab to search for and automate the contents of the "to" field. BBDB will also open a contact buffer so you can make sure it is correct.
Since a .vcf file has been generated for each address in vdirsyncer, why are we doing this? If you have a lot of addresses like me, it's troublesome to deal with one address at a time. By doing this, you can put everything in abook and make a large file.
Use calfw to browse calendars in Emacs
Calfw Calendar
Finally, you can use Emacs to view the calendar. In the above configuration, you installed the calfw package and added some lines to tell it where to find the calendar to load. Calfw is the abbreviation of "Emacs Calendar Framework Calendar Framework for Emacs". It supports multiple calendar formats. I use Google Calendar, which is the link I put in the configuration. The calendar will be loaded automatically at startup, and you can view it by switching to the cfw-calendar buffer with the Ctrl+x+b command.
Calfw provides daily, weekly, biweekly, and monthly views. You can select a view at the top of the calendar and use the arrow keys to navigate the calendar. Unfortunately, calfw can only view calendars, so you still need to use tools such as khal or through the web interface to add, delete, and modify events.
At this point, the study on "how to use Emacs to send email and check the calendar" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.