Display the date with Emacs editor

Sandra Ross

I'm trying to configure Today is 20/11/2016 with Emacs editor. I think the command date is located in \bin. Therefore, with the editor I wrote what is in the following image :

enter image description here

I know it should be straighforward, but I am a beginner (so it's not). Could anyone be able to tell me what do I have to do to fix this? I know with bash shell, I should use $(date +%D) to obtain the date. However, as I use fish shell, I don't even know what it could be.

Rahul

Paste this in the editor

 C-u M-! date

M-! date is shell command for date and C-u is prefix to put its output in current buffer.

Another method,

add the following to your ~/.emacs:

 (display-time-mode 1)

Ref : https://www.emacswiki.org/emacs/DisplayTime

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Set emacs -nw as default editor

From Dev

Set emacs -nw as default editor

From Dev

Emacs display inline suggestions

From Dev

Emacs display inline suggestions

From Dev

Display text in Quill editor

From Dev

JSpinner number editor display

From Dev

spell check not working in emacs text editor

From Dev

Display contents of remote HTML in Emacs

From Dev

emacs dired reverse date order

From Dev

How to display inline errors in the editor

From Dev

ACE Editor: Display content progressively

From Dev

display cxSchedulerHolidays editor from application

From Dev

How to make Emacs operation safe without hanging or crashing the whole editor

From Dev

Emacs: Rebind numbers (Editor of the Beast VI VI VI)

From Dev

using emacs for visudo editor not opening /etc/sudoers file on Mac

From Dev

How to configure Alpine to use an already running Emacs as an alternate editor?

From Dev

Display the name of syntax table for the current buffer in Emacs

From Dev

How to set color in Emacs display property?

From Dev

Emacs telnet mode display strange characters

From Dev

Display stdout as Received in Emacs Shell-Mode

From Dev

Emacs -- sort list of directories / files by modification date

From Dev

using date-time in emacs spreadsheets

From Dev

Trying to get date format in Google Sheets to display as 1st, 2nd, 3rd etc with the relevant suffix using google scripts editor

From Dev

Window display table and buffer display table conflict in Emacs

From Dev

Display date in roman numerals

From Java

Angularjs - display current date

From Dev

Display next event date

From Dev

Display date and time in datetimepicker

From Dev

How to display date in lable

Related Related

HotTag

Archive