Skip to main content
It's about completion, not auto-completion
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Auto How to get completion modesto ignore filename regular expressionsextensions

It's possible to ask auto-completion modes like helmcompletion to not suggest files with particular file extensions, by:

(setq completion-ignored-extensions
      (append completion-ignored-extensions
              (quote
               (".o" ".aux"))))

However, I'm not able to determine how to pattern match-match on regular expressions before the "." and not just after it. For example, I don't want files that end with "_flymake.hs" to be suggested by completion modes. How could I accomplish this?

Auto completion modes ignore filename regular expressions

It's possible to ask auto-completion modes like helm to not suggest files with particular file extensions, by:

(setq completion-ignored-extensions
      (append completion-ignored-extensions
              (quote
               (".o" ".aux"))))

However, I'm not able to determine how to pattern match on regular expressions before the "." and not just after it. For example, I don't want files that end with "_flymake.hs" to be suggested by completion modes. How could I accomplish this?

How to get completion to ignore filename extensions

It's possible to ask completion to not suggest files with particular file extensions, by:

(setq completion-ignored-extensions
      (append completion-ignored-extensions
              (quote
               (".o" ".aux"))))

However, I'm not able to determine how to pattern-match on regular expressions before the "." and not just after it. For example, I don't want files that end with "_flymake.hs" to be suggested by completion modes. How could I accomplish this?

Source Link

Auto completion modes ignore filename regular expressions

It's possible to ask auto-completion modes like helm to not suggest files with particular file extensions, by:

(setq completion-ignored-extensions
      (append completion-ignored-extensions
              (quote
               (".o" ".aux"))))

However, I'm not able to determine how to pattern match on regular expressions before the "." and not just after it. For example, I don't want files that end with "_flymake.hs" to be suggested by completion modes. How could I accomplish this?