मैं वर्तमान में एक मैक पर हूं और डिफ़ॉल्ट रूप से फ़ाइल के अंत में एक नई लाइन जोड़ने के लिए Emacs सेट करने की कोशिश कर रहा हूं, लेकिन जो कुछ भी मैं खोजता हूं, वह बस इतना कहता है होम निर्देशिका में .emacs फ़ाइल में जोड़ें (setq आवश्यकता-अंतिम-न्यूलाइन शून्य) ... यह काम नहीं करता है। परिवर्तन के बगल में मुझे क्या देखना चाहिए?Emacs स्वचालित रूप से बदलने के बाद भी एक नई लाइन जोड़ रहा है .emacs
यह वही है .emacs फ़ाइल अभी की तरह लग रहा है
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(gud-gdb-command-name "gdb --annotate=1")
'(large-file-warning-threshold nil)
'(require-final-newline nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
अधिक दबाव वाला प्रश्न यह है: "आप पैर में खुद को शूट करने के अलावा वास्तव में इस सायन और उपयोगी डिफ़ॉल्ट क्यों बदलेंगे?" – pmr
क्योंकि मैं किसी प्रोग्राम के लिए एक इनपुट फ़ाइल संपादित कर रहा हूं जो फ़ाइल चरित्र के अंत में फ़ाइल में अंतिम चीज़ के रूप में समाप्त होने की अपेक्षा करता है, लेकिन Emacs उस चरित्र के बाद एक नई लाइन जोड़ रहा है। – Jayson
इस समस्या का प्रदर्शन करने वाली फ़ाइल का प्रमुख तरीका क्या है? –