धन्यवाद, सीएमएस! मेरे भिन्नता, क्या यह लायक है के लिए - मुझे काफी खुश करता:
(load "c:/bjk/elisp/bjk-timestamp.el")
जो दोनों यह आसान संशोधित करने के लिए बनाता है:
(defvar bjk-timestamp-format "%Y-%m-%d %H:%M"
"Format of date to insert with `bjk-timestamp' function
%Y-%m-%d %H:%M will produce something of the form YYYY-MM-DD HH:MM
Do C-h f on `format-time-string' for more info")
(defun bjk-timestamp()
"Insert a timestamp at the current point.
Note no attempt to go to beginning of line and no added carriage return.
Uses `bjk-timestamp-format' for formatting the date/time."
(interactive)
(insert (format-time-string bjk-timestamp-format (current-time)))
)
मैं एक फ़ाइल है कि का उपयोग कर मेरी .emacs द्वारा कहा जाता है में रखते मेरे .emacs में कुछ और तोड़ने के जोखिम के बिना, और मुझे किसी दिन वास्तव में एक आसान प्रविष्टि बिंदु की अनुमति दी, वास्तव में यह सीखना कि यह Emacs Lisp प्रोग्रामिंग क्या है।
पीएस मेरी एन 00 बी तकनीक के बारे में आलोचना सबसे ज्यादा स्वागत है।
नोटपैड में Ctrl + G "गोटो लाइन" संवाद खोलता है, यह भी उपयोगी है! – cfeduke