2010-03-03 17 views
12

मैं जल्दी से आदेश C-x b <non existent buffer name>मैं एक नया बफर जल्दी से खोलने के लिए emacs कैसे प्राप्त कर सकता हूं?

किसी तरह मैं Emacs के अपने संस्करण (23.1) में यह टूट गया है का उपयोग कर Emacs में एक नया बफर को खोलने के लिए सक्षम होने के लिए इस्तेमाल किया। जब भी मैं इसे करने की कोशिश करता हूं तो मुझे कमांड बफर में संदेश [No match] मिलता है।

क्या किसी को पता है कि मैंने इस कार्यक्षमता को तोड़ने के लिए क्या किया होगा, या क्या यह संभव है कि मैंने ऐसा करने में सक्षम होने की कल्पना की?

+3

मैं सी-एच के सी-एक्स बी (यानी सी-एक्स बी शॉर्टकट के लिए बाध्य है) के परिणाम का उल्लेख करने का सुझाव दूंगा। – Bahbar

उत्तर

9

सेट confirm-nonexistent-file-or-buffernil रहे हैं:

confirm-nonexistent-file-or-buffer is a variable defined in `files.el'. 
Its value is after-completion 

Documentation: 
Whether confirmation is requested before visiting a new file or buffer. 
If nil, confirmation is not requested. 
If the value is `after-completion', confirmation is only 
requested if the user called `minibuffer-complete' right before 
`minibuffer-complete-and-exit'. 
Any other non-nil value means to request confirmation. 

This affects commands like `switch-to-buffer' and `find-file'. 

You can customize this variable. 

This variable was introduced, or its default value was changed, in 
version 23.1 of Emacs. 
+0

मैंने इसे अपने .emacs में जोड़ा है लेकिन कोई पासा नहीं है। ';; Temp buffers (setq पुष्टिकरण-nonexistent-file-or-buffer nil) बनाते समय मौजूद मौजूदा नाम के लिए संकेत न दें) क्या आप कुछ भी कर सकते हैं जो मैंने किया है जो सही नहीं है? – chollida

+0

यह यहां विज्ञापन के रूप में काम करता है। क्या आपके पास इडो सक्षम है क्योंकि अन्य ने सुझाव दिया है? – scottfrazer

2

आपने शायद ido-mode सक्षम किया है। बफर के निर्माण की पुष्टि करने के लिए आपको ENTER दबाएं।

+0

यह कारण नहीं प्रतीत होता है। – chollida

7

यदि आपने ido-mode सक्षम किया है, तो भी आप उस व्यवहार पर स्विच कर सकते हैं, जिसे आप परिचित हैं। मैं अक्सर ऐसा करता हूं जब मुझे पता है कि मैं एक नया नाम बफर बनाउंगा।

Cxसीबी

+1

भी सेटिंग (setq ido-create-new-buffer 'हमेशा सेटिंग) मदद कर सकता है। – antonj

+0

मैं ido-mode का उपयोग नहीं कर रहा हूं। – chollida

3

आप मुख्य न्यायाधीश बजाय प्रेस दो बार दर्ज मार है, जो पुष्टि बायपास करेंगे और तुरंत नए खोलने बफर। यह ido-mode के साथ या उसके बिना काम करता है। इसका एक ही प्रभाव confirm-nonexistent-file-or-buffer के साथ nil पर दर्ज करने के साथ दबाएगा।

संबंधित मुद्दे