Commits

Anonymous committed fef5ce8

interface: added ropemacs-autoimport-underlineds variable

  • Participants
  • Parent commits 95a7dd3

Comments (0)

Files changed (1)

ropemacs/interface.py

         progress = lisputils.create_progress('Opening "%s" project' % root)
         self.project = rope.base.project.Project(root)
         if lisp['ropemacs-enable-autoimport'].value():
-            self.autoimport = autoimport.AutoImport(self.project)
+            underlined = lisp['ropemacs-autoimport-underlineds']
+            self.autoimport = autoimport.AutoImport(self.project,
+                                                    underlined=underlined)
         progress.done()
 
     @decorators.global_command('k')
 
 The `rope-generate-autoimport-cache' reads this list and fills its
 cache.")
+(defcustom ropemacs-autoimport-underlineds 'nil
+  "If set, autoimport will cache names starting with underline, too.")
 
 (defcustom ropemacs-completing-read-function (if (and (boundp 'ido-mode)
                                                       ido-mode)